From 645af473091eb6207e2eade915886f57488ccf8c Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 22 Jul 2023 22:43:25 +0300 Subject: [PATCH] dont allow ppl to reply to normal comments like they're a message, @ThousandBestLives did this --- files/routes/users.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/routes/users.py b/files/routes/users.py index 4ffbcbfde..3d216cd32 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -608,6 +608,10 @@ def messagereply(v:User): id = request.values.get("parent_id") parent = get_comment(id, v=v) + + if parent.parent_post or parent.wall_user_id: + abort(403, "You can only reply to messages!") + user_id = parent.author.id if v.is_permabanned and parent.sentto != MODMAIL_ID: