pull/96/head
SneedBot 2023-01-24 06:42:34 +00:00
parent dd5942a2f2
commit 625778721e
1 changed files with 8 additions and 6 deletions

View File

@ -956,6 +956,8 @@ class User(Base):
if user and user.id == other.author_id: return True
if isinstance(other, Submission):
if other.sub and not cls.can_see(user, other.subr): return False
if any(i in other.title.lower() for i in FORBIDDEN) and not (user and user.truescore > 100):
return False
else:
if other.parent_submission:
if user and user.id == other.post.author_id: return True