diff --git a/files/classes/submission.py b/files/classes/submission.py index 655ef47ee..aa0214da4 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -350,6 +350,9 @@ class Submission(Base): title = censor_slurs(title, v) + if v: + title = title.replace("!YOU!", v.username.lower()) + return title @lazy diff --git a/files/classes/user.py b/files/classes/user.py index 06e4b8d26..1f1c462c4 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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: