From 82af0d4528b298986f399fd7fa0a27765eb7aa7f Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 28 Feb 2023 22:52:43 +0200 Subject: [PATCH] fix not being able to see ur own replies in DMs --- files/routes/users.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index 79ec93e004..5a49eee314 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -591,12 +591,17 @@ def messagereply(v:User): body_html = sanitize(body) + if parent.sentto == MODMAIL_ID: + sentto = MODMAIL_ID + else: + sentto = user_id + c = Comment(author_id=v.id, parent_submission=None, parent_comment_id=id, top_comment_id=parent.top_comment_id, level=parent.level + 1, - sentto=parent.sentto, + sentto=sentto, body=body, body_html=body_html, )