From 9ba1e9626820156a798f0e3911c8db9ef9612974 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 2 Nov 2022 19:30:00 -0500 Subject: [PATCH] fix prev commit --- 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 6518ccbb7..0164ed4c1 100644 --- a/files/routes/reporting.py +++ b/files/routes/reporting.py @@ -126,7 +126,7 @@ def remove_report_comment(v, cid, uid): def move_post(post:Submission, v:User, reason:str) -> Union[bool, str]: if not reason.startswith('/h/'): return False sub_from = post.sub - sub_to = get_sub_by_name(reason[:3].strip().lower()) + sub_to = get_sub_by_name(reason, graceful=True) sub_to = sub_to.name if sub_to else None can_move_post = v.admin_level >= PERMS['POST_COMMENT_MODERATION'] or (post.sub and v.mods(sub_from))