From a9309096b477bd6d3f7976d87fc4f8296ebb1efa Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 14 Dec 2022 02:13:50 +0000 Subject: [PATCH] modmail: fix modmail 404 (#64) Co-authored-by: justcool393 Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/64 Co-authored-by: justcool393 Co-committed-by: justcool393 --- files/routes/comments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 903fdbee0..baef4bbb2 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -106,7 +106,8 @@ def comment(v:User): if POLL_THREAD and parent.id == POLL_THREAD and v.admin_level < PERMS['POST_TO_POLL_THREAD']: abort(403) elif parent_fullname.startswith("c_"): parent = get_comment(id, v=v) - post_target = get_post(parent.parent_submission, v=v, graceful=True) or get_account(parent.wall_user_id, v=v, include_blocks=True, include_shadowbanned=False) + post_target = get_post(parent.parent_submission, v=v, graceful=True) or \ + get_account(parent.wall_user_id, v=v, include_blocks=True, include_shadowbanned=False, graceful=True) parent_comment_id = parent.id if parent.author_id == v.id: rts = True if not v.can_post_in_ghost_threads and isinstance(post_target, Submission) and post_target.ghost: