[backend/database] Add explicit parentheses to Note.IsVisibleFor

This is semantically identical, but should be easier to read.
This commit is contained in:
Laura Hausmann 2024-05-23 15:17:37 +02:00
parent aa8e3f32c5
commit 2ffededb4d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -296,7 +296,7 @@ public class Note : IEntity
[Projectable]
[SuppressMessage("ReSharper", "MergeIntoPattern", Justification = "Projectable chain must not contain patterns")]
public bool IsVisibleFor(User? user) =>
VisibilityIsPublicOrHome && (!LocalOnly || (user != null && user.Host == null)) ||
(VisibilityIsPublicOrHome && (!LocalOnly || (user != null && user.Host == null))) ||
(user != null && CheckComplexVisibility(user));
[Projectable]