[backend/masto-client] Fix IsApplicableBool check in UserChannel
This commit is contained in:
parent
0f69013224
commit
329f677075
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ public class UserChannel(WebSocketConnection connection, bool notificationsOnly)
|
|||
}
|
||||
|
||||
private bool IsApplicableBool(Note note) =>
|
||||
connection.Following.Prepend(connection.Token.User.Id).Contains(note.UserId);
|
||||
connection.Following.Prepend(connection.Token.User.Id).Contains(note.UserId) &&
|
||||
(note.Visibility <= Note.NoteVisibility.Followers ||
|
||||
note.IsVisibleFor(connection.Token.User, connection.Following));
|
||||
|
||||
private bool IsApplicable(Notification notification) => notification.NotifieeId == connection.Token.User.Id;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue