fix: don't show mentions and boosts towards muted user posts in timeline
Closes #336
This commit is contained in:
parent
c8c505fb92
commit
e5c060eecf
6 changed files with 16 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue