Commit Graph

98 Commits

Author SHA1 Message Date
Julian Lam
6069bee019 chore: make getParentChain logging verbose 2024-06-14 13:26:56 -04:00
Julian Lam
1219d7d3b8 fix: minor adjustment in logic to work around relation logic 2024-06-14 10:20:53 -04:00
Barış Soner Uşaklı
839928b390 another one 2024-06-14 07:44:10 -04:00
Julian Lam
b6ffc47c5d feat: check to/cc/audience for local category and put topic there instead (overrides passed-in cid)
closes #12634
2024-06-13 17:06:58 -04:00
Julian Lam
acd1630b9f fix: move logic to move topic on note assertion earlier in the flow so it actually runs 2024-06-13 14:02:26 -04:00
Barış Soner Uşaklı
b2d03da96d refactor: dont need exist check, if post doesnt exist getPostData returns null 2024-06-12 16:04:14 -04:00
Opliko
42f514b793 feat: add timestamp to most activity ids 2024-06-11 22:55:45 +02:00
Julian Lam
bcfac00bec fix: unintentional parseInt during post purge 2024-06-10 12:30:48 -04:00
Julian Lam
6ecc791db9 fix: missing await on topic purge 2024-06-07 16:48:05 -04:00
Barış Soner Uşaklı
d1625d5fd2 refactor: change to info 2024-06-07 12:54:11 -04:00
Barış Soner Uşaklı
ba2d18418a refactor: comment out verbose logs 2024-06-07 11:56:58 -04:00
Julian Lam
709c91329a feat: pruning of stale notes older than 30 days with no engagement 2024-06-04 14:18:22 -04:00
Julian Lam
b5b89038ac fix: Notes.delete to delete announcer zsets too 2024-05-10 14:40:04 -04:00
Julian Lam
ccd187e000 feat: Note deletion logic and refactoring, #12551 2024-05-09 15:49:03 -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
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
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
b9d6aa4639 feat: slightly better title generation 2024-04-29 16:16:07 -04: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
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
6fc6cc33cd feat: note attachments via link preview plugin 2024-04-10 22:01:50 -04:00
Julian Lam
59709a3cb2 fix: tests, save actor URL into userRemote hash 2024-04-03 13:49:27 -04:00
Julian Lam
a38d0c14ab Revert "refactor: use getSortedSetUnion in syncUserInboxes instead"
This reverts commit 6c1a0fb1dc.
2024-03-26 16:41:51 -04:00
Julian Lam
f078e1e267 fix: lint 2024-03-26 13:44:23 -04:00
Julian Lam
6c1a0fb1dc refactor: use getSortedSetUnion in syncUserInboxes instead 2024-03-26 13:39:34 -04:00
Julian Lam
5efe8abd15 Revert "add 1 ||"
This reverts commit c2890a3e74.
2024-03-26 13:20:12 -04:00
Barış Soner Uşaklı
c2890a3e74 add 1 || 2024-03-26 10:41:29 -04:00
Julian Lam
55e947a01d feat: add checks to only continue with topic assertion if there is a relation to existing content, #12442 2024-03-26 10:22:17 -04:00
Julian Lam
2688b6bbdc feat: add assertion lock on activitypub.notes.assert 2024-03-25 14:55:25 -04:00
Julian Lam
1fb3c4fda6 fix: undefined object in notes.assert 2024-03-22 16:21:32 -04:00
Julian Lam
bab41d129a fix: typo 2024-03-22 16:01:05 -04:00
Julian Lam
04c743eb4a feat: have category actor send Announce(Note) on remote replies to topics in a cid
#12434
2024-03-22 15:28:01 -04:00
Julian Lam
4ee8519d0c chore: move assertTopic to top of file, rename to assert
... despite the diff, that's all this commit did
2024-03-22 14:54:53 -04:00
Julian Lam
7df5cabb76 feat: have category actor send Announce(Note) activity on posts from that cid
re: #12434
2024-03-22 14:39:20 -04:00
Julian Lam
5f60f75f7d fix: restore accidentally removed calls to updateLocalRecipients and saveAttachments 2024-03-15 16:38:00 -04:00
Julian Lam
ccd9c7ed85 fix: tweak maxTags handling 2024-03-14 14:48:35 -04:00
Julian Lam
44a183dd84 fix: typo 2024-03-14 13:41:04 -04:00
Julian Lam
0a2482cf51 fix: double-OP issue when remote reply comes in to local mainPid 2024-03-14 13:28:57 -04:00
Julian Lam
7aa56c727b fix: filter out system tags and prune extra tags beyond number allowed, when creating topic from remote data 2024-03-14 13:28:57 -04:00
Julian Lam
c5c0c47393 chore: lint 2024-03-13 11:45:28 -04:00
Julian Lam
c6624b6341 chore: remove now-unused notes.assert 2024-03-13 11:07:38 -04:00
Julian Lam
519e025e27 feat: return count of new notes in assertTopic 2024-03-13 11:03:08 -04:00
Julian Lam
f7c8967ee2 refactor: use topics.post, topics.reply, and posts.edit in Create(Note), Create(Note), and Update(Note), respectively 2024-03-12 14:24:38 -04:00
Julian Lam
52c143aa03 fix: template helper 2024-03-12 13:27:29 -04:00
Julian Lam
eb8ff75b63 fix: only dereference id if it doesn't exist locally — fewer calls 2024-03-12 11:33:40 -04:00
Julian Lam
81b81e540a fix: tags received via AP should only be of type Hashtag (as mentions are also in tag prop 2024-03-07 15:11:43 -05:00