From 804c2b4e237c4a1e2bb6714b4e50d95674e40048 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 14 Sep 2022 12:45:28 +0200 Subject: [PATCH] allow hole jannies to move posts in their hole to /h/chudrama --- files/routes/reporting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/reporting.py b/files/routes/reporting.py index 213134390..c117c2bb7 100644 --- a/files/routes/reporting.py +++ b/files/routes/reporting.py @@ -40,7 +40,7 @@ def flag_post(pid, v): _note=f'"{post.flair}"' ) g.db.add(ma) - elif reason.startswith('/h/') and (v.admin_level >= 2 or v.id == post.author_id): + elif reason.startswith('/h/') and (v.admin_level >= 2 or v.id == post.author_id or (reason == '/h/chudrama' and v.mods(post.sub))): sub_from = post.sub sub_to = reason[3:].strip().lower()