fix not being able to see ur own replies in DMs

pull/136/head
Aevann 2023-02-28 22:52:43 +02:00
parent 76156ba9c4
commit 82af0d4528
1 changed files with 6 additions and 1 deletions

View File

@ -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,
)