fix: websocket for timelines not checking following for muted instance users

Closes #233
This commit is contained in:
Marie 2023-12-21 22:42:06 +01:00
parent fd9ba530ba
commit 9c6a7aed98
4 changed files with 4 additions and 4 deletions

View file

@ -51,7 +51,7 @@ class HomeTimelineChannel extends Channel {
}
// Ignore notes from instances the user has muted
if (isInstanceMuted(note, new Set<string>(this.userProfile!.mutedInstances))) return;
if (isInstanceMuted(note, new Set<string>(this.userProfile!.mutedInstances)) && !this.following[note.userId]) return;
if (note.visibility === 'followers') {
if (!isMe && !Object.hasOwn(this.following, note.userId)) return;