From 8c4a4486a1916e7cbdb22f2b39f5c90bd5c8e4cf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 28 Jul 2022 16:19:58 +0200 Subject: [PATCH] fix this https://rdrama.co/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2390057?context=8#context --- 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 a3b83c67e..a98c24501 100644 --- a/files/routes/reporting.py +++ b/files/routes/reporting.py @@ -41,7 +41,7 @@ def api_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): sub_from = post.sub sub_to = reason[3:].strip().lower()