Commit Graph

363 Commits

Author SHA1 Message Date
Julian Lam
709a02d97a feat: allow use of vanity domains pointing to an account hosted elsewhere 2024-08-02 11:47:23 -04:00
Julian Lam
ff08fbb73f fix: always send replies uri instead of null if no replies exist, @trwnh 2024-08-01 14:59:28 -04:00
Julian Lam
9bd6896d13 fix: send null instead of empty array in replies property if mocked note has no replies
re: mastodon/mastodon#31230
2024-08-01 11:35:38 -04:00
Julian Lam
e015339ccf refactor: follow/accept/undo logic to pass the same timestamp throughout the follow's lifetime 2024-07-30 14:05:59 -04:00
Julian Lam
2ced350250 fix: bug that caused remote replies to other remote content to not always assert 2024-07-29 16:03:58 -04:00
Julian Lam
1f896fb6ba fix: bugs in user searching causing remote lookups to fail 2024-07-29 15:03:51 -04:00
Julian Lam
399d41030f fix: add privilege check to user follows 2024-07-24 11:59:50 -04:00
Julian Lam
7bf349b62b fix: accidental passing of string instead of constant 2024-07-24 11:54:41 -04:00
Julian Lam
39f92eac16 refactor: store local follow backreferences for remote users (both followers and following), update actor pruning to take local follow counts into consideration, fixes #12701 2024-07-19 14:37:32 -04:00
Julian Lam
5c9ac5d330 fix: missing await 2024-07-19 11:13:30 -04:00
Julian Lam
f9937a84c4 feat: additional logic to handle special case where a queried object id reports a context, but it is not actually contained in the resolved context's collection 2024-07-19 11:06:19 -04:00
Julian Lam
60408f2307 fix: incorrect parsing of context items during note assertion, logic error with slicing 2024-07-19 10:50:14 -04:00
Julian Lam
bc00835c26 fix: logging in topic actor logic 2024-07-19 10:49:43 -04:00
Julian Lam
ff0c289e1d feat: #12695 Topic Synchronization via resolvable context
- Generation of a context collection digest via object ids
- Sending of said digest in ETag header
- Parsing of digests via If-None-Match header
- Update note assertion logic to handle 304 response
2024-07-16 11:37:38 -04:00
Julian Lam
da25fd21ea feat: activitypub.get; allow the passing-in of custom headers via existing options parameter 2024-07-16 11:36:39 -04:00
Julian Lam
31c7226e34 fix: flawed logic in generating topic context collection 2024-07-11 14:33:07 -04:00
Julian Lam
ad05f06b00 test: have actor assertion always use cache for tests 2024-07-11 13:16:53 -04:00
Julian Lam
00a266790d fix: federating category mentions 2024-07-09 15:42:08 -04:00
Julian Lam
f605e188db fix: send html in category description 2024-07-09 15:13:12 -04:00
Julian Lam
485b775837 feat: allow activitypub request cache to be ignored 2024-07-09 14:45:04 -04:00
Julian Lam
5e343a83f8 fix: Update activity handling for non-Person actors 2024-07-09 14:30:03 -04:00
Julian Lam
3c9337b730 feat: send join date in local actor mock 2024-07-09 14:06:59 -04:00
Julian Lam
b0eec67d78 fix: lint 2024-07-05 15:58:47 -04:00
Julian Lam
af6ae6ee8a fix: send back empty array if no direct replies, bug with reply generation 2024-07-05 15:50:14 -04:00
Julian Lam
26a7c51a9a feat: AP note replies collection, closes #12675 2024-07-05 15:33:06 -04:00
Julian Lam
352857cfb6 refactor: collection logic out to an activitypub helper 2024-07-05 15:14:35 -04:00
Julian Lam
8e1fccf014 fix: accidental passing-in of an array into getUserField, breaks in pgsql? 2024-07-05 14:19:15 -04:00
Julian Lam
4949d6c4e5 test: fix broken test in category follows 2024-07-05 13:33:00 -04:00
Julian Lam
8ecbb5cc5c fix: partial revert to fix url_parsed not being available at top of file @barisusakli 2024-07-05 12:14:16 -04:00
Julian Lam
46341673b3 fix: removal of topics from applicable user inboxes when synced
re: #12642
2024-07-05 12:00:23 -04:00
Julian Lam
d92efb8a0c fix: #12667; handle cases where received id is not a URL 2024-07-05 11:29:05 -04:00
Julian Lam
f662a60667 fix: #12673 fullname not defined in some remote actors 2024-07-05 11:18:20 -04:00
Julian Lam
2cbd63dc31 docs: update comment to reflect new behaviour 2024-07-05 11:09:42 -04:00
Julian Lam
cb5e5b4bdb fix: additional logging for activities with no context property 2024-07-04 17:00:30 -04:00
Julian Lam
600b1a8622 fix: update handling of Announce(Create(Note)) to also handle non-note types 2024-07-04 17:00:14 -04:00
Barış Soner Uşaklı
644bcec562 perf: use batch in resolveInboxes 2024-07-03 22:35:46 -04:00
Julian Lam
20aee8e9ae refactor: context item retrieval logic 2024-06-28 16:28:48 -04:00
Julian Lam
cc0bbcb7bf fix: push instead of unshift, now that order is reversed 2024-06-28 16:28:34 -04:00
Julian Lam
a2fb939b5c fix: wrong property name for OrderedCollection items 2024-06-28 15:14:22 -04:00
Julian Lam
e75ec39b70 feat: topic backfill logic via resolvable context #12647 2024-06-28 12:54:41 -04:00
Julian Lam
615aaa01d6 fix: improper sourceContent in mocks 2024-06-28 12:54:41 -04:00
Julian Lam
d6f44d8ec3 fix: #12662, add original activity actor to Announced activity's cc 2024-06-27 14:05:48 -04:00
Julian Lam
4dbb73a433 fix: remove duplicate 1b12 announce in notes.assert (already handled in inbox) 2024-06-26 14:32:48 -04:00
Julian Lam
b66d998d37 fix: #12654, incorrect location of sharedInbox property 2024-06-25 11:29:20 -04:00
Julian Lam
a371c9fceb fix: regression that caused new notes to have undefined cid and fail privilege check 2024-06-25 11:04:45 -04:00
Julian Lam
89dd2fb04a fix: move call to retrieve cid followers out of loop 2024-06-25 11:04:45 -04:00
Julian Lam
16f8f536da fix: do not retrieve remote outbox count when asserting actor
This change means that a remote user's post count is only the number
of posts they have stored locally. This is easier to reconcile with
the profile UI since showing the artificial number could cause issues
if the local instance contains fewer or no posts by that user.

fixes #12646
2024-06-21 16:48:17 -04:00
Julian Lam
d9ac7f4995 fix: double sanitization 2024-06-20 22:25:09 -04:00
Julian Lam
59818031bc fix: improper sanitization and parsing in mocks.note
- sanitize-html invocation was stripping out images by default, now added as an exception
- only post content was passsed into filter:parse.post, but hook expects post summary
2024-06-19 11:24:24 -04:00
Julian Lam
4eb998d59d fix: send additional @context entry for publicKey support, fixes #12604 2024-06-17 16:27:59 -04:00