From 98a0f37e597eb57c1c3f26cb7ee95012a055ebfd Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 26 Nov 2022 22:08:54 +0200 Subject: [PATCH] Revert "user and" This reverts commit 0b146d0b7b7850af375cc23f4347f559d433ca80. --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 891db2601..8993f23c8 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1000,7 +1000,7 @@ class User(Base): if not cls.can_see(user, other.author): return False if user and user.id == other.author_id: return True if isinstance(other, Submission): - if "!YOU!" in other.title and not (user and user.can_see_you_post): return False + if "!YOU!" in other.title and not user.can_see_you_post: return False if other.sub and not cls.can_see(user, other.subr): return False else: if not other.parent_submission: