From 75cb26ccf4e6add33acdb5038f0c2e4fe38b6b82 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 22 Jan 2023 09:57:47 +0200 Subject: [PATCH] remove platform-specific posts --- files/classes/user.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 78b2582d0..89a48e729 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -955,10 +955,6 @@ 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 browser != 'webview' and other.author_id == AEVANN_ID and other.title.startswith('[ANDROID]'): - return user and user.admin_level >= PERMS['POST_COMMENT_MODERATION'] - if browser != 'apple' and other.author_id == CARP_ID and other.title.startswith('[APPLE]'): - return user and user.admin_level >= PERMS['POST_COMMENT_MODERATION'] if other.sub and not cls.can_see(user, other.subr): return False else: if other.parent_submission: