remove FORBIDDEN
parent
668851851c
commit
728217c075
|
@ -962,8 +962,6 @@ 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
|
||||
|
|
|
@ -54,7 +54,6 @@ FP = environ.get("FP", "").strip()
|
|||
KOFI_TOKEN = environ.get("KOFI_TOKEN", "").strip()
|
||||
KOFI_LINK = environ.get("KOFI_LINK", "").strip()
|
||||
PROGSTACK_MUL = float(environ.get("PROGSTACK_MUL", 2.0))
|
||||
FORBIDDEN = environ.get("FORBIDDEN", "").strip().split()
|
||||
ENCOURAGED = environ.get("ENCOURAGED", "").strip().split()
|
||||
ENCOURAGED2 = environ.get("ENCOURAGED2", "").strip().split()
|
||||
|
||||
|
|
Loading…
Reference in New Issue