From 94ed49569aec469fc01cd0ce05b78db7619b1b39 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 27 Feb 2023 14:46:22 +0200 Subject: [PATCH] better can_see logic --- files/classes/user.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 8733a5126..2aa775532 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -979,12 +979,7 @@ class User(Base): else: if other.parent_submission: - if not (user and user.patron) and other.post.title.lower().startswith('[paypigs]'): - return False - - if user and user.id == other.post.author_id: return True - if other.post.sub and not cls.can_see(user, other.post.subr): return False - # if not cls.can_see(user, other.post): return False + return cls.can_see(user, other.post) else: if not user and not other.wall_user_id: return False if not other.sentto: return True # handled by Notification