Commit graph

1931 commits

Author SHA1 Message Date
Hazelnoot
edb74066da unify note create/edit logic to fix various logic bugs and validation gaps 2025-10-08 21:12:14 -04:00
Hazelnoot
24bc1c653d fix DMs converting to public notes when the audience can't be resolved 2025-10-08 21:11:05 -04:00
Hazelnoot
c2e52f6ae7 prevent packing renotes at infinite depth 2025-10-08 21:11:04 -04:00
Hazelnoot
74a7f96cc2 prevent remote instances from renoting a boost 2025-10-08 21:10:09 -04:00
Hazelnoot
9dc0d849ec recurse when preventing quote chains 2025-10-08 21:09:17 -04:00
Lhc_fl
e6fd69f634
🐛 fix: userBlockedCache is invalid 2025-09-29 17:14:23 +08:00
Marie
741e612508 merge: Expand Mandatory CW feature and fixup block/mute/silence features (resolves #809, #910, #912, #943, #1064, #1142, and #1186) (!1148)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1148

Closes #809, #910, #912, #943, #1064, #1142, and #1186

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-09-25 20:05:46 +02:00
Hazelnoot
0e6caa625c fix cw-note erasing parts of the note 2025-09-19 12:01:36 -04:00
Hazelnoot
e68e0266a4 fix user's DMs not showing up in their own home timeline when Fanout Timeline is enabled 2025-09-18 22:08:33 -04:00
Hazelnoot
4bab56609f follow-up fixes to NoteVisibilityService changes 2025-09-18 19:29:21 -04:00
Hazelnoot
4b57d7d6dd populate renote target in NoteVisibilityService 2025-09-18 17:36:26 -04:00
Hazelnoot
a1a35cad25 fix data load/passing in NoteVisibilityService 2025-09-18 17:36:25 -04:00
Hazelnoot
49901cc46b merge: Conditional role tester (!1201)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1201

Closes #897

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-09-14 06:56:13 -04:00
Hazelnoot
e72d153cc8 merge: Add check to prevent creating too many active dialog announcements (!1175)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1175

Closes #769

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-09-14 06:54:53 -04:00
Hazelnoot
364e189721 merge: Support video/x-matroska (MKV) files for embed (!1214)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1214

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-09-13 14:32:57 -04:00
Hazelnoot
13b6097a12 merge: Allow for sending announcement mails with List-Unsubscribe: (!1164)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1164

Closes #854

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-09-13 12:32:39 -04:00
Hazelnoot
c677a9c515 restore module file types to audio types list 2025-09-13 11:42:20 -04:00
Hazelnoot
1397f63ceb align file types in SearchServices with full list of supported types 2025-09-13 11:42:20 -04:00
Hazelnoot
5cb94e3c60 fix replies / renotes of silenced users/instances by a followed user appearing in the streaming API 2025-09-13 11:34:38 -04:00
Hazelnoot
cd25ed8d18 remove no-op Fanout alwaysIncludeMyNotes option 2025-09-13 11:34:38 -04:00
Hazelnoot
9dad384f81 fix Fanout ignoreAuthorFromUserSuspension option not working after relation changes 2025-09-13 11:34:38 -04:00
Hazelnoot
f0b1809598 fix Fanout ignoreAuthorFromInstanceBlock option not working after relation changes 2025-09-13 11:34:38 -04:00
Hazelnoot
4c87289e70 fix Fanout excludeReplies option include our own replies 2025-09-13 11:34:38 -04:00
Hazelnoot
929ddb7e76 fix excludeAuthor check in QueryService.generateBlockedHostQueryForNote 2025-09-13 11:34:38 -04:00
Hazelnoot
c9fc153fe2 remove un-necessary call to isAccessible from shouldRedact 2025-09-13 11:34:38 -04:00
Hazelnoot
b289a0c091 don't copy note multiple times while recursing in checkNoteVisibility 2025-09-13 11:34:38 -04:00
Hazelnoot
2bb7980fe7 deep-copy notes before syncing visibility 2025-09-13 11:34:38 -04:00
Hazelnoot
bac4d43773 avoid creating an unnecessary Map in FederatedInstanceService 2025-09-13 11:34:38 -04:00
Hazelnoot
023d4dd850 fix ignoring the result of .filter() in FanoutTimelineEndpointService 2025-09-13 11:34:38 -04:00
Hazelnoot
e6547be0a2 tweak populateUsers for consistency between user & instance code paths 2025-09-13 11:34:38 -04:00
Hazelnoot
1e2f34c813 make sure that fanout timeline notes are fully populated 2025-09-13 11:34:38 -04:00
Hazelnoot
4b37bb23a2 expose federatedInstanceCache for access to bulk cache APIs 2025-09-13 11:34:38 -04:00
Hazelnoot
fbf6fc0c54 rename includeSilencedAuthor to ignoreSilencedAuthor for readability 2025-09-13 11:34:38 -04:00
Hazelnoot
a63c66c073 set packedNote.bypassSilence when it's our own note 2025-09-13 11:34:38 -04:00
Hazelnoot
738106f493 recurse into boosts in generateSilencedUserQueryForNotes (needs a cleanup later, but working for now) 2025-09-13 11:34:38 -04:00
Hazelnoot
26b19c9008 refactor queries in NoteEntityService.pack to load less data and cover more edge cases 2025-09-13 11:34:38 -04:00
Hazelnoot
d0605c2220 fix WebhookTestService 2025-09-13 11:34:38 -04:00
Hazelnoot
7842847f6b implement QueryService.generateExcludedRepliesQueryForNotes 2025-09-13 11:34:37 -04:00
Hazelnoot
f26566e844 add withReplies option to QueryService.addFollowingUser, .andFollowingUser, and .orFollowingUser 2025-09-13 11:34:37 -04:00
Hazelnoot
c9fbe58715 add missing condition in QueryService.generateSilencedUserQueryForNotes 2025-09-13 11:34:37 -04:00
Hazelnoot
96ee635765 make QueryService.generateSuspendedUserQueryForNote automatically add all required joins 2025-09-13 11:34:37 -04:00
Hazelnoot
f1fc8bc357 add bypassSilence property at note level to fix silenced users' self-boosts showing a warning even when the user is followed 2025-09-13 11:34:37 -04:00
Hazelnoot
b9778e7fc8 remove extra relations from FanoutTimelineEndpointService 2025-09-13 11:34:37 -04:00
Hazelnoot
85ca2269e4 completely re-implement note visibility as NoteVisibilityService 2025-09-13 11:34:37 -04:00
Hazelnoot
e9d9246f64 reformat generateSilencedUserQueryForNotes for readability 2025-09-13 11:34:37 -04:00
Hazelnoot
21700a668e add error checking for QueryService.leftJoin 2025-09-13 11:34:37 -04:00
Hazelnoot
efc8bbb4b3 fix comment typo in QueryService 2025-09-13 11:34:37 -04:00
Hazelnoot
613e05dcc9 fix muted note/thread checks in QueryService 2025-09-13 11:34:37 -04:00
Hazelnoot
24e1294a70 recurse to filter boosts in FanoutTimelineEndpointService filters 2025-09-13 11:34:37 -04:00
Hazelnoot
06e944e666 check for silenced users, muted notes/threads, and note visibility in FanoutTimelineEndpointService.getMiNotes 2025-09-13 11:34:37 -04:00