forked from rDrama/rDrama
1
0
Fork 0

add code so i can make a post that only legacy android app users can see

master
Aevann1 2022-12-03 01:58:13 +02:00
parent 39558a2812
commit aad1d72f43
1 changed files with 2 additions and 0 deletions

View File

@ -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: