Commit graph

1898 commits

Author SHA1 Message Date
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
Hazelnoot
6936ccf8db fix myFollowings not being passed from packMany to pack 2025-09-13 11:34:37 -04:00
Hazelnoot
c31283e9d6 don't populate relations in packMany unless we really need to 2025-09-13 11:34:37 -04:00
Hazelnoot
29ed47d326 fix logic in NoteEntityService.isVisibleForMe to be more consistent with everything else 2025-09-13 11:34:37 -04:00
Hazelnoot
252536ad9f fix WebhookTestService.ts 2025-09-13 11:34:37 -04:00
Hazelnoot
7728e749f1 return bypassSilence to the frontend and remove isSilencedForMe 2025-09-13 11:34:37 -04:00
Hazelnoot
c373d814e9 fix bypassSilence flag 2025-09-13 11:34:37 -04:00
Hazelnoot
1b4263eba2 don't include instance silence in user silence flag 2025-09-13 11:34:37 -04:00
Hazelnoot
bc16dc78d4 add instance.isSilencedForMe 2025-09-13 11:34:37 -04:00
Hazelnoot
e4316e9721 fix WebhookTestService.ts 2025-09-13 11:34:37 -04:00
Hazelnoot
455be9e197 replace note.isSilenced with user.isSilencedForMe 2025-09-13 11:34:36 -04:00
Hazelnoot
2be12dfe64 fix silenced users being hidden from their followers 2025-09-13 11:34:36 -04:00
Hazelnoot
16dedf7219 filter silenced notes in many more places 2025-09-13 11:34:36 -04:00
Hazelnoot
64694be004 mute silenced notes in frontend 2025-09-13 11:34:36 -04:00
Hazelnoot
ae9c21e322 fix mandatory CW for notes erasiong content 2025-09-13 11:34:36 -04:00
Hazelnoot
7ab3a20b3b fix cherry-pick error 2025-09-13 11:34:36 -04:00
Hazelnoot
1413be08a0 apply note mandatory CW through NoteEditService 2025-09-13 11:34:36 -04:00
Hazelnoot
d62be884b3 replace "Mark instance as NSFW" toggle with an instance-level mandatory CW 2025-09-13 11:34:36 -04:00
Hazelnoot
5e0115335a add mandatory CW for instances 2025-09-13 11:34:35 -04:00
Hazelnoot
92750240eb implement mandatory CW for notes (resolves #910) 2025-09-13 11:34:35 -04:00
Hazelnoot
479e6daa1d add role policy "canViewFederation" 2025-08-18 16:52:06 -04:00
Hazelnoot
ad4f9823a2 merge: Fix stuck "new chat message" indicators when a room is deleted (!1216)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1216

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-08-16 19:08:33 +00:00
Marie
d872c6608f merge: Allow restricting announcement to a set of roles (!1161)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1161

Closes #682

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-08-16 08:11:08 +00:00
Hazelnoot
a92d3ca121 delete any "new chat" notifications when deleting rooms 2025-08-13 23:54:09 -04:00