Commit Graph

260 Commits

Author SHA1 Message Date
Julian Lam
5e9d47a1d8 feat: serve Tombstone objects for soft deleted posts
re: #12551
2024-05-07 12:16:23 -04:00
Julian Lam
9761526710 feat: ability to query remote users by webfinger handle 2024-05-07 10:11:36 -04:00
Opliko
a7aeabc80d fix: ensure consistent return type from notes.assert
For fully cached topics it returned bare tid instead of a { tid, count } object.

Typescript would fix this btw :)
2024-05-07 10:40:47 +02:00
Opliko
af98675808 fix: remove unnecessary check and guard against unsupported URIs before fetching 2024-05-06 23:57:47 +02:00
Opliko
22b42f11dd fix: handle retry queue invalidation across a cluster 2024-05-06 23:16:58 +02:00
Opliko
729f0fcac1 fix: use batch.processArray properly 2024-05-06 23:06:06 +02:00
Opliko
ea6e15bf08 refactor: use batch.processArray for sending AP messages 2024-05-06 22:52:48 +02:00
Opliko
50bc9a37c5 feat: basic retry queue 2024-05-06 22:49:31 +02:00
Julian Lam
4e7b12b925 fix: if an unknown post is navigated to by a logged-in user, automatically assert the post and add it to their inbox 2024-05-06 15:54:45 -04:00
Julian Lam
738d47c7db fix: save followersUrl to remote user hashes 2024-05-06 14:46:26 -04:00
Julian Lam
4b29a1b91d refactor: context actor to serve an as:OrderedCollection instead of as:Page, and added context property (as per FEP-7888) to refer to it, changed audience to point to category 2024-05-03 14:11:25 -04:00
Opliko
32d1adf67d feat: add id to reject activity 2024-05-03 17:48:09 +02:00
Opliko
0336e8f0ad fix: send id for category announces 2024-05-03 17:15:55 +02:00
Julian Lam
119800d936 refactor: post announce logic to save to separate zset instead of to topic events, closes #12536 2024-05-01 14:44:29 -04:00
Julian Lam
6ac5a77976 fix: update title generator to include the punctuation, and also take into account question marks and exclamation marks 2024-04-30 11:41:34 -04:00
Julian Lam
b9d6aa4639 feat: slightly better title generation 2024-04-29 16:16:07 -04:00
Julian Lam
94eafe1df3 refactor: split activitypub tests to subfolder files 2024-04-26 11:30:08 -04:00
Opliko
ed84eed8a9 fix: better logic for choosing webfinger lookups 2024-04-25 20:05:53 +02:00
Opliko
dd71340af9 fix: don't look up webfinger when it's not necessary 2024-04-25 19:58:55 +02:00
Julian Lam
6964b1fd56 fix: update hasRelation condition to be true if cid is passed in in options 2024-04-25 11:20:34 -04:00
Opliko
1ecbf02a58 fix: handle requests to URI IDs correctly 2024-04-25 17:16:30 +02:00
Opliko
844d1402ba refactor: use URLSearchParams instead of multiple encodeURIComponent 2024-04-25 13:16:05 +02:00
Opliko
700016649d fix: handle URI actor IDs 2024-04-25 12:59:05 +02:00
Opliko
3d1e2cde6a fix: percent-encode outgoing webfinger requests
resolves #12531 - note that incoming percent-encoded webfinger works just fine :)
2024-04-25 11:59:20 +02:00
Julian Lam
2ce3a11645 feat: handle 1b14 announce for remote content too 2024-04-19 23:36:43 -04:00
Opliko
f802564e64 feat: resolve Crate and Announce activities 2024-04-17 19:19:09 +02:00
Julian Lam
a9a7fd1ecd fix: handle Announce(Create(Note)) 2024-04-17 12:55:15 -04:00
Julian Lam
dce334461a fix: use system pseudo-user for topic move call 2024-04-16 14:27:21 -04:00
Julian Lam
49a64dc7a7 fix: if the topic already existed in -1, move it to another category if one was passed in options 2024-04-16 14:17:47 -04:00
Julian Lam
452cb0a9aa feat: utility functions to get local followers/counts given a remote actor uri, plumb cid into notes.assert via inbox.announce if a local cid is following the sending actor 2024-04-16 14:00:01 -04:00
Julian Lam
1253ded7d5 chore: minor cleanup 2024-04-16 13:38:05 -04:00
Julian Lam
407dda78e1 fix: add back reverse lookup for notes assertion checking via cids 2024-04-15 16:28:57 -04:00
Julian Lam
59a9dd8436 refactor: stub routes for category synchronization, refactor remote follow logic to allow categories to conduct follows as well 2024-04-15 16:18:12 -04:00
Julian Lam
b7ff7be28f fix: actors.assert should return false if webfinger cannot resolve to an id 2024-04-15 13:37:00 -04:00
Julian Lam
b7629c6ef7 feat: send id back during accepts 2024-04-15 09:48:58 -04:00
Opliko
026449dc4a fix: support reporting remote content in Flag 2024-04-14 02:42:30 +02:00
Opliko
a1a7fb77da feat: handle Undo(Flag) 2024-04-14 02:02:17 +02:00
Julian Lam
7c4ae8eb82 fix: #12505, convert relative urls in links and images into absolute urls, uses same logic as for emails 2024-04-12 15:30:59 -04:00
Julian Lam
64258dac19 fix: send userslug in preferredUsername 2024-04-12 14:26:37 -04:00
Julian Lam
50f31b236a fix: wrong variable name 2024-04-12 14:13:46 -04:00
Julian Lam
fdbd30dc23 feat: integrate post uploads into attachments for outgoing note mocks 2024-04-12 14:08:28 -04:00
Julian Lam
bb4e418dde fix: change default attachment type to Link, or Image if mediaType matches 2024-04-12 12:56:18 -04:00
Julian Lam
52271caec2 fix: you scurvy cur! 2024-04-11 15:23:19 -04:00
Julian Lam
4d23a837fa fix: handle (created) and (expires) in http signatures 2024-04-11 15:20:59 -04:00
Julian Lam
525b7c2cee feat: save remote post url into hash for use 2024-04-11 13:25:37 -04:00
Julian Lam
8d0876b8d7 fix: send hs2019 as algo (to match cavage-12, handle incoming algorithm value 2024-04-11 10:39:51 -04:00
Julian Lam
6fc6cc33cd feat: note attachments via link preview plugin 2024-04-10 22:01:50 -04:00
Opliko
959e1820cd fix: throw errors when local objects don't exist 2024-04-10 18:50:41 +02:00
Julian Lam
e0f542c912 fix: #12493, send unescaped fullname through via AP if displayname is set/used 2024-04-10 12:17:07 -04:00
Julian Lam
465a46f2e6 fix: send only the id into actors.assert 2024-04-10 12:17:07 -04:00