[backend/streaming] Fix typo that caused block/mute checks to do the opposite of what they're supposed to do

This commit is contained in:
Laura Hausmann 2024-06-26 15:49:36 +02:00
parent 6b5a5a1a09
commit 5fd34e690d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -212,7 +212,7 @@ public sealed class StreamingConnectionAggregate : IDisposable
[SuppressMessage("ReSharper", "SuggestBaseTypeForParameter")] [SuppressMessage("ReSharper", "SuggestBaseTypeForParameter")]
private bool IsFiltered(User user) => private bool IsFiltered(User user) =>
!_blockedBy.Contains(user.Id) && !_blocking.Contains(user.Id) && !_muting.Contains(user.Id); _blockedBy.Contains(user.Id) || _blocking.Contains(user.Id) || _muting.Contains(user.Id);
[SuppressMessage("ReSharper", "SuggestBaseTypeForParameter")] [SuppressMessage("ReSharper", "SuggestBaseTypeForParameter")]
private bool IsFollowingOrSelf(User user) => user.Id == _userId || _following.Contains(user.Id); private bool IsFollowingOrSelf(User user) => user.Id == _userId || _following.Contains(user.Id);