From f58538fdaec61c1b01797edaa6cd37c2268d4922 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 22 Feb 2024 20:50:23 +0100 Subject: [PATCH] [backend/core] Renote/reply visibility should fall back invisible --- Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs b/Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs index 9bc82aa8..5e6fbb98 100644 --- a/Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs +++ b/Iceshrimp.Backend/Core/Extensions/QueryableExtensions.cs @@ -245,9 +245,9 @@ public static class QueryableExtensions public static Note EnforceRenoteReplyVisibility(this Note note) { - if (!note.PrecomputedIsReplyVisible ?? false) + if (!(note.PrecomputedIsReplyVisible ?? false)) note.Reply = null; - if (!note.PrecomputedIsRenoteVisible ?? false) + if (!(note.PrecomputedIsRenoteVisible ?? false)) note.Renote = null; return note; @@ -262,9 +262,9 @@ public static class QueryableExtensions { var note = predicate.Compile().Invoke(source); if (note == null) return source; - if (!note.PrecomputedIsReplyVisible ?? false) + if (!(note.PrecomputedIsReplyVisible ?? false)) note.Reply = null; - if (!note.PrecomputedIsRenoteVisible ?? false) + if (!(note.PrecomputedIsRenoteVisible ?? false)) note.Renote = null; return source;