forked from rDrama/rDrama
...
parent
e93e2d9ca9
commit
d0534897ec
|
@ -30,7 +30,7 @@ def flag_post(pid, v):
|
||||||
|
|
||||||
if len(reason) > 350: return {"error": "Too long."}, 400
|
if len(reason) > 350: return {"error": "Too long."}, 400
|
||||||
|
|
||||||
if reason.startswith('!') and (v.admin_level > PERMS['POST_COMMENT_MODERATION'] or post.sub and v.mods(post.sub)):
|
if reason.startswith('!') and (v.admin_level >= PERMS['POST_COMMENT_MODERATION'] or post.sub and v.mods(post.sub)):
|
||||||
post.flair = reason[1:]
|
post.flair = reason[1:]
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
if v.admin_level >= PERMS['POST_COMMENT_MODERATION']:
|
if v.admin_level >= PERMS['POST_COMMENT_MODERATION']:
|
||||||
|
|
Loading…
Reference in New Issue