sneed
parent
a641acaf8f
commit
9c773b02a5
|
@ -350,6 +350,9 @@ class Submission(Base):
|
||||||
|
|
||||||
title = censor_slurs(title, v)
|
title = censor_slurs(title, v)
|
||||||
|
|
||||||
|
if v:
|
||||||
|
title = title.replace("!YOU!", v.username.lower())
|
||||||
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
|
|
|
@ -1000,6 +1000,7 @@ class User(Base):
|
||||||
if not cls.can_see(user, other.author): return False
|
if not cls.can_see(user, other.author): return False
|
||||||
if user and user.id == other.author_id: return True
|
if user and user.id == other.author_id: return True
|
||||||
if isinstance(other, Submission):
|
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
|
if other.sub and not cls.can_see(user, other.subr): return False
|
||||||
else:
|
else:
|
||||||
if not other.parent_submission:
|
if not other.parent_submission:
|
||||||
|
|
Loading…
Reference in New Issue