From aad1d72f438788adcf8708e633eac7bf8f1ba992 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 3 Dec 2022 01:58:13 +0200 Subject: [PATCH] add code so i can make a post that only legacy android app users can see --- files/classes/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/classes/user.py b/files/classes/user.py index a52d693b4..6f3fb05b7 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1033,6 +1033,8 @@ class User(Base): if user and user.id == other.author_id: return True if isinstance(other, Submission): if "!YOU!" in other.title and not user: return False + if not g.webview and other.author_id == AEVANN_ID and other.title.startswith('[ANDROID]'): + return False if other.sub and not cls.can_see(user, other.subr): return False else: if not other.parent_submission: