dont allow ppl to reply to normal comments like they're a message, @ThousandBestLives did this

pull/173/head
Aevann 2023-07-22 22:43:25 +03:00
parent 7193420b6f
commit 645af47309
1 changed files with 4 additions and 0 deletions

View File

@ -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: