diff options
| author | Marie <marie@kaifa.ch> | 2024-01-26 01:59:19 +0100 |
|---|---|---|
| committer | Marie <marie@kaifa.ch> | 2024-01-26 01:59:19 +0100 |
| commit | e5c060eecf3be33c26f4909a933d1884fda4eee3 (patch) | |
| tree | 2adb61d6693b2cf4e608c31863348987ca981875 /packages/backend/src/core/FanoutTimelineEndpointService.ts | |
| parent | fix: allow viewing of muted users posts (diff) | |
| download | sharkey-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/FanoutTimelineEndpointService.ts')
| -rw-r--r-- | packages/backend/src/core/FanoutTimelineEndpointService.ts | 1 |
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; |