diff --git a/files/routes/reporting.py b/files/routes/reporting.py index a3b83c67eb..a98c245014 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()