forked from rDrama/rDrama
1
0
Fork 0

restore rdrama jannies ability to mark effortposts

master
Aevann 2024-02-28 20:17:03 +02:00
parent 5a64dc48cb
commit 589f4237fa
2 changed files with 4 additions and 2 deletions

View File

@ -201,6 +201,7 @@ PERMS = { # Minimum admin_level to perform action.
'UPDATE_ASSETS': 3,
'CHANGE_UNDER_SIEGE': 3,
'VIEW_IPS': 3,
'MARK_EFFORTPOST': 3,
'PROGSTACK': 4,
'UNDO_AWARD_PINS': 4,
@ -219,7 +220,6 @@ PERMS = { # Minimum admin_level to perform action.
'IGNORE_AWARD_IMMUNITY': 4,
'INSERT_TRANSACTION': 4,
'APPS_MODERATION': 4,
'MARK_EFFORTPOST': 4,
'MODS_EVERY_HOLE': 5,
'MODS_EVERY_GROUP': 5,
@ -731,7 +731,6 @@ elif SITE in {'watchpeopledie.tv', 'marsey.world'}:
PERMS['POST_COMMENT_EDITING'] = 3
PERMS['MODS_EVERY_HOLE'] = 3
PERMS['MARK_EFFORTPOST'] = 3
PERMS['IS_PERMA_PROGSTACKED'] = 4
HOLE_BANNER_LIMIT = 69420

View File

@ -2129,6 +2129,9 @@ def mark_effortpost(pid, v):
if p.effortpost:
abort(400, "Post is already marked as an effortpost!")
if len(p.body) < 3000:
abort(403, "Effortposts need to be 3000+ characters!")
p.effortpost = True
g.db.add(p)