forked from MarseyWorld/MarseyWorld
make all unblockable holes unexilable
parent
2f856ea7c6
commit
cd054bdb03
|
@ -21,6 +21,9 @@ def exile_post(v, pid):
|
|||
|
||||
if not v.mods_hole(hole): abort(403)
|
||||
|
||||
if hole in {'atheism', 'dioceseofrdrama', 'truth'}:
|
||||
abort(403, f"/h/{hole} has the exiling feature disabled due to being unblockable.")
|
||||
|
||||
u = p.author
|
||||
|
||||
if u.mods_hole(hole): abort(403)
|
||||
|
@ -55,6 +58,9 @@ def exile_comment(v, cid):
|
|||
|
||||
if not v.mods_hole(hole): abort(403)
|
||||
|
||||
if hole in {'atheism', 'dioceseofrdrama', 'truth'}:
|
||||
abort(403, f"/h/{hole} has the exiling feature disabled due to being unblockable.")
|
||||
|
||||
u = c.author
|
||||
|
||||
if u.mods_hole(hole): abort(403)
|
||||
|
|
Loading…
Reference in New Issue