Commit Graph

679 Commits

Author SHA1 Message Date
Julian Lam
189fcfa694 Merge branch 'master' into develop 2025-10-01 12:52:17 -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
Julian Lam
4776d01281 sec: disallow checkHeader from returning a URL from a different origin than the passed-in URL 2025-10-01 11:00:03 -04:00
Julian Lam
7184507be2 fix: #13667, record to instances:lastSeen instead of domains:lastSeen 2025-09-25 15:12:52 -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
9deb576d1e Merge branch 'master' into develop 2025-09-19 14:43:13 -04:00
Julian Lam
f9edb13f62 fix: missing actor assertion on 1b12 announced upboat 2025-09-19 14:43:04 -04:00
Julian Lam
d122bf4a98 fix: update logic as to whether a post is served as an article or not
Now, if OP is less than 500 characters, it is just federated out as a Note instead.
2025-09-19 12:43:13 -04:00
Julian Lam
be9212b59f fix: update activitypubFilterList logic so that it is also checked on resolveInbox and ActivityPub.get methods, updated instances.isAllowed to no longer return a promise 2025-09-19 10:56:35 -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
Barış Soner Uşaklı
5beeedd67c Revert "lint: remove unused"
This reverts commit a6674f67a1.
2025-09-17 11:09:02 -04:00
Barış Soner Uşaklı
57a4ce8006 Merge branch 'master' of https://github.com/NodeBB/NodeBB 2025-09-17 10:58:31 -04:00
Barış Soner Uşaklı
a6674f67a1 lint: remove unused 2025-09-17 10:58:26 -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
Julian Lam
5f4790a48c feat: allow activities to be addressed to as:Public or Public to be treated as public content 2025-09-15 14:01:00 -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
Julian Lam
86d9016f02 fix: regression that caused Piefed (or potentially others) content to be dropped on receipt 2025-09-04 10:29: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
35641f377c feat: use sbd to more intelligently put together a sub-500 character summary based on existing sentences in post content
The original behaviour was to just shove the entire post content (html and all) into summary. Summary _can_ include HTML, but it's a little harder to retain HTML but truncate the content based on sentences, without accidentally dropping tags.
2025-08-28 14:27:46 -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
Julian Lam
a0be4a28da fix: remove webfinger error log 2025-08-28 12:45:56 -04:00
Barış Soner Uşaklı
b73ee309e0 refactor: remove invalid queued items
catch invalid json in payload
2025-08-28 12:39:44 -04:00
Julian Lam
771b8dcb2d fix: random hotkeys adding dependencies to my project smh 2025-08-27 15:08:51 -04:00
Julian Lam
aa26dfb372 feat: send local posts out to established relays 2025-08-27 14:16:42 -04:00
Julian Lam
6576468e2e fix: internationalize relay states 2025-08-27 14:16:42 -04:00
Julian Lam
28b63891d4 fix: minor fixes for yukimochi/Activity-Relay compatibility 2025-08-27 14:16:42 -04:00
Julian Lam
b1dbb19c10 fix: inbox.announce to not reject activities from relays 2025-08-27 14:16:42 -04:00
Julian Lam
f4d1df7c66 feat: relay handshake logic, handle Follow/Accept, send back Accept. 2025-08-27 14:16:42 -04:00
Julian Lam
4967492f4f fix: handle webfinger responses with subject missing scheme 2025-08-27 14:16:42 -04:00
Julian Lam
1e0fb20db4 feat: adding and removing relays from AP settings page in ACP 2025-08-27 14:16:42 -04:00
Barış Soner Uşaklı
be53dbcbb8 remove logs 2025-08-27 13:30:29 -04:00