pull/19/head
Aevann1 2022-11-26 06:59:07 +02:00
parent a641acaf8f
commit 9c773b02a5
2 changed files with 4 additions and 0 deletions

View File

@ -350,6 +350,9 @@ class Submission(Base):
title = censor_slurs(title, v)
if v:
title = title.replace("!YOU!", v.username.lower())
return title
@lazy

View File

@ -1000,6 +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 other.sub and not cls.can_see(user, other.subr): return False
else:
if not other.parent_submission: