remove FORBIDDEN

pull/107/head
Aevann 2023-01-31 23:22:21 +02:00
parent 668851851c
commit 728217c075
2 changed files with 0 additions and 3 deletions

View File

@ -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

View File

@ -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()