Allow API clients to view !YOU! submissions. #19

Merged
justcool393 merged 1 commits from :master into master 2022-11-26 18:41:41 +00:00
1 changed files with 1 additions and 2 deletions

View File

@ -1000,7 +1000,7 @@ 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 "!YOU!" in other.title and not (user and user.truescore > 5000): return False
if "!YOU!" in other.title and not (user and (user.client or user.truescore > 5000)): return False
if other.sub and not cls.can_see(user, other.subr): return False
else:
if not other.parent_submission:
@ -1016,7 +1016,6 @@ class User(Base):
return (user and user.id == other.id) or (user and user.can_see_shadowbanned) or not other.shadowbanned
return True
@property
@lazy
def can_see_chudrama(self):