1
0

fix: don't show mentions and boosts towards muted user posts in timeline

Closes #336
This commit is contained in:
Marie
2024-01-26 01:59:19 +01:00
parent c8c505fb92
commit e5c060eecf
6 changed files with 16 additions and 0 deletions
@@ -74,6 +74,9 @@ class GlobalTimelineChannel extends Channel {
// 流れてきたNoteがブロックされているユーザーが関わるものだったら無視する
if (isUserRelated(note, this.userIdsWhoBlockingMe)) return;
if (note.renote && !note.text && note.renote.mentions?.some(mention => this.userIdsWhoMeMuting.has(mention))) return;
if (note.mentions?.some(mention => this.userIdsWhoMeMuting.has(mention))) return;
if (note.renote && !note.text && isUserRelated(note, this.userIdsWhoMeMutingRenotes)) return;
if (this.user && note.renoteId && !note.text) {