[backend/database] Add explicit parentheses to Note.IsVisibleFor
This is semantically identical, but should be easier to read.
This commit is contained in:
parent
aa8e3f32c5
commit
2ffededb4d
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue