From 26d1b6bb0ab932b420671e98ac10df4a2bca3c31 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 26 Feb 2023 14:24:07 +0200 Subject: [PATCH] fix this https://stupidpol.site/h/changelog/post/150341/paypigs-paypigonly-thread-no-poors-allowed/3671353#context --- files/classes/user.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/classes/user.py b/files/classes/user.py index cfad12e25..8733a5126 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -979,6 +979,9 @@ 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