From df4eb02c0e1d2202b9a90cc422ff2025d320609a Mon Sep 17 00:00:00 2001 From: float trip Date: Sat, 26 Nov 2022 18:06:04 +0000 Subject: [PATCH] Allow API clients to view !YOU! submissions. --- files/classes/user.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 1f1c462c4..9231e27e7 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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): -- 2.34.1