From 2ffededb4d48c078d3eb01c1b115e2211000f713 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 23 May 2024 15:17:37 +0200 Subject: [PATCH] [backend/database] Add explicit parentheses to Note.IsVisibleFor This is semantically identical, but should be easier to read. --- Iceshrimp.Backend/Core/Database/Tables/Note.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Core/Database/Tables/Note.cs b/Iceshrimp.Backend/Core/Database/Tables/Note.cs index c893f008..f7f7b65e 100644 --- a/Iceshrimp.Backend/Core/Database/Tables/Note.cs +++ b/Iceshrimp.Backend/Core/Database/Tables/Note.cs @@ -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]