summaryrefslogtreecommitdiff
path: root/packages/backend/src/core
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2024-01-26 01:59:19 +0100
committerMarie <marie@kaifa.ch>2024-01-26 01:59:19 +0100
commite5c060eecf3be33c26f4909a933d1884fda4eee3 (patch)
tree2adb61d6693b2cf4e608c31863348987ca981875 /packages/backend/src/core
parentfix: allow viewing of muted users posts (diff)
downloadsharkey-e5c060eecf3be33c26f4909a933d1884fda4eee3.tar.gz
sharkey-e5c060eecf3be33c26f4909a933d1884fda4eee3.tar.bz2
sharkey-e5c060eecf3be33c26f4909a933d1884fda4eee3.zip
fix: don't show mentions and boosts towards muted user posts in timeline
Closes #336
Diffstat (limited to 'packages/backend/src/core')
-rw-r--r--packages/backend/src/core/FanoutTimelineEndpointService.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/backend/src/core/FanoutTimelineEndpointService.ts b/packages/backend/src/core/FanoutTimelineEndpointService.ts
index a3c8c21e98..72d39e79f1 100644
--- a/packages/backend/src/core/FanoutTimelineEndpointService.ts
+++ b/packages/backend/src/core/FanoutTimelineEndpointService.ts
@@ -123,6 +123,7 @@ export class FanoutTimelineEndpointService {
if (isUserRelated(note, userIdsWhoBlockingMe, ps.ignoreAuthorFromBlock)) return false;
if (isUserRelated(note, userIdsWhoMeMuting, ps.ignoreAuthorFromMute)) return false;
if (note.mentions.some(mention => userIdsWhoMeMuting.has(mention))) return false;
+ if (isPureRenote(note) && note.renote && note.renote.mentions.some(mention => userIdsWhoMeMuting.has(mention))) return false;
if (isPureRenote(note) && isUserRelated(note, userIdsWhoMeMutingRenotes, ps.ignoreAuthorFromMute)) return false;
if (isInstanceMuted(note, userMutedInstances)) return false;