Commit Graph

190 Commits

Author SHA1 Message Date
Julian Lam
3df4970ce1 fix: call api.topics method on topic move during note assertion, have category announce new topic on note assertion 2025-10-21 12:16:20 -04:00
Julian Lam
d3b3720915 refactor: move post attachment handling directly into posts.create 2025-10-09 13:58:08 -04:00
Julian Lam
ec3998974c fix: omg what. 2025-10-06 22:17:35 -04:00
Julian Lam
675178aca4 fix: allow quote-inline class in mocks sanitizer so quote-post fallback elements can be detected and removed during title generation, fixes #13688 2025-10-01 12:13:57 -04:00
Barış Soner Uşaklı
c7e84b8d92 Merge branch 'master' into develop 2025-09-25 12:38:02 -04:00
Julian Lam
7abdfd86ac fix: skip header checking during note assertion if test runner is active 2025-09-25 11:56:38 -04:00
Julian Lam
33b56e810c Merge branch 'master' into develop 2025-09-22 12:15:30 -04:00
Julian Lam
d0c058263f fix: update note assertion topic members check to simpler posts.exists check
The original logic checked that each member of the resolved chain was part of the resolved topic.

That isn't always the case, especially when topics splinter due to network timeouts/unavailability.

This ended up causing issues where already asserted posts were re-asserted but failed because they no longer served an _activitypub object since it was already asserted and the data was just pulled from the db.
2025-09-22 12:14:20 -04:00
Julian Lam
be098e1207 Merge branch 'master' into develop 2025-09-22 11:57:05 -04:00
Julian Lam
4d68e3fe14 fix: re-jig handling of ap tag values so that only hashtags are considered (not Piefed community tags, etc.) 2025-09-22 11:56:55 -04:00
Julian Lam
559155da63 refactor: notes.assert to add finally block, update assertPayload to update instances:lastSeen via method instead of direct db call 2025-09-19 10:34:57 -04:00
Julian Lam
532653110c Revert "fix: add pre-processing step to title generation logic so sbd doesn't fall over so badly"
This reverts commit f7c4742987.
2025-09-17 10:58:07 -04:00
Julian Lam
f7c4742987 fix: add pre-processing step to title generation logic so sbd doesn't fall over so badly 2025-09-17 10:44:51 -04:00
Julian Lam
36346dd822 Merge branch 'master' into develop 2025-09-15 14:10:07 -04:00
Julian Lam
b66c30a2a7 fix: handle cases where incoming ap object tag can be a non-array 2025-09-15 14:10:02 -04:00
Barış Soner Uşaklı
f9688b36b6 fix: port the try/catch for notes.assert from develop 2025-09-11 17:44:34 -04:00
Barış Soner Uşaklı
9184a7a4cc fix: add missing unlock in nested try/catch 2025-09-11 17:28:56 -04:00
Julian Lam
95fb084ca4 fix: wrap majority of note assertion logic in try..catch to handle exceptions so that the lock is always released 2025-09-11 10:30:25 -04:00
Julian Lam
f7d10e09ac Merge branch 'master' into develop 2025-09-10 15:07:13 -04:00
Julian Lam
953c051c2e fix: perform Link header check on note assertion only when skipChecks is falsy 2025-09-10 14:59:13 -04:00
Julian Lam
1d6a9fe738 feat: allow user auto-categorization rule 2025-09-08 15:36:48 -04:00
Julian Lam
10f665e3e3 Merge branch 'master' into develop 2025-09-08 12:00:49 -04:00
Julian Lam
527f27af29 fix: make auto-categorization logic case-insensitive 2025-09-08 12:00:32 -04:00
Julian Lam
15f9fbaa5c feat: add minor pre-processing step to better handle header elements in incoming html 2025-09-05 13:16:28 -04:00
Julian Lam
2ea624fc8e fix: use newline_boundaries param for tokenizer during title and summary generation, attempt to serve HTML in summary generation 2025-09-04 16:55:04 -04:00
Julian Lam
e6996846ac fix: use existing id if checkHeader returns false 2025-09-04 11:20:17 -04:00
Barış Soner Uşaklı
19aa8a7168 fix: display proper id if lock fails 2025-08-30 13:24:33 -04:00
Julian Lam
4ef605b1aa fix: #13622, WordPress blog URLs not asserting properly 2025-08-29 13:33:19 -04:00
Julian Lam
8268632235 feat: add sbd dependency to improve title generation (and for summary generation, later) 2025-08-28 14:12:04 -04:00
Barış Soner Uşaklı
4ad7b59281 Update notes.js 2025-08-27 13:28:26 -04:00
Barış Soner Uşaklı
681ce8bf2f test: add more logs 2025-08-27 12:23:10 -04:00
Barış Soner Uşaklı
029da6c52e test: debug timeout 2025-08-27 12:10:30 -04:00
Barış Soner Uşaklı
5ee1fd02bb refactor: add missing awaits
fix error message, lock not using second param
2025-08-26 19:23:39 -04:00
Julian Lam
165af50dc8 feat: apply auto-categorization logic 2025-08-25 11:47:05 -04:00
Julian Lam
cc92702620 fix: add try..catch around topics.post in note assertion logic 2025-06-01 00:31:58 -04:00
Julian Lam
a460a55064 fix: bring back auto-categorization if group and object are same-origin, handle Peertube putting channel names in attributedTo 2025-05-15 15:40:01 -04:00
Julian Lam
fe13c75549 fix: #13375, plus additional tests 2025-05-13 13:59:34 -04:00
Julian Lam
651ebaaf6c fix: missing await 2025-05-06 13:24:58 -04:00
Julian Lam
b433848971 fix: #13374, updates to posts.edit to handle remote content updates better 2025-05-06 10:45:09 -04:00
Julian Lam
1f04678210 fix: #13255, assert all recipients of the main post when asserting a note, so that remote categories can be discovered 2025-04-29 10:28:18 -04:00
Julian Lam
9c1d5cd36e feat: #13255, deliver asserted topics to remote category followers 2025-04-29 10:28:17 -04:00
Julian Lam
0fa98237af refactor: allow topics to be asserted directly into a remote category, or -1 otherwise 2025-04-29 10:28:17 -04:00
Julian Lam
f73f727d90 feat: also include category in to field when mocking post for federation 2025-04-29 10:28:17 -04:00
Barış Soner Uşaklı
2c59007b10 fix: closes #13275, set 'announces' after adding to zset to prevent race condition 2025-04-01 10:55:03 -04:00
Julian Lam
80e03c857e fix: #13254, configurable ap content prune 2025-03-19 10:17:09 -04:00
Julian Lam
885b83e509 feat: if an incoming remote message is too long, don't create the room, but notify the local recipients instead
closes #13174
2025-03-07 15:26:13 -05:00
Julian Lam
4ec7552cfb refactor: move all input note normalization into helper method, have assertPrivate mock a message object (with said normalization) before sending message 2025-03-04 14:11:41 -05:00
Julian Lam
5c3f1cfe57 fix: tag handling when remote objects contain tags without leading # symbol 2025-02-26 13:36:06 -05:00
Julian Lam
c98f29aeb4 Merge branch 'master' into develop 2025-02-26 12:57:47 -05:00
Julian Lam
c65e1ebb8f fix: #13202, private note assertion failure when cc property is missing 2025-02-26 12:29:57 -05:00