make all unblockable holes unexilable

master
Aevann 2024-02-12 16:43:54 +02:00
parent 2f856ea7c6
commit cd054bdb03
1 changed files with 6 additions and 0 deletions

View File

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