Move a bunch of moderation tools to admin level 2

This commit is contained in:
Ben Rog-Wilhelm 2022-09-06 18:42:36 -05:00 committed by Ben Rog-Wilhelm
parent f5c3d944e8
commit 20fa9ce79f
8 changed files with 13 additions and 17 deletions

View file

@ -174,10 +174,6 @@ def api_comment(v):
body = request.values.get("body", "").strip()[:10000]
if v.admin_level > 2 and parent_post.id == 37749 and level == 1:
with open(f"snappy_{SITE_ID}.txt", "a", encoding="utf-8") as f:
f.write('\n{[para]}\n' + body)
if parent_post.id not in ADMINISTRATORS:
if v.longpost and (len(body) < 280 or ' [](' in body or body.startswith('[](')):
return {"error":"You have to type more than 280 characters!"}, 403