forked from rDrama/rDrama
fix not being able to see ur own replies in DMs
parent
76156ba9c4
commit
82af0d4528
|
@ -591,12 +591,17 @@ def messagereply(v:User):
|
||||||
|
|
||||||
body_html = sanitize(body)
|
body_html = sanitize(body)
|
||||||
|
|
||||||
|
if parent.sentto == MODMAIL_ID:
|
||||||
|
sentto = MODMAIL_ID
|
||||||
|
else:
|
||||||
|
sentto = user_id
|
||||||
|
|
||||||
c = Comment(author_id=v.id,
|
c = Comment(author_id=v.id,
|
||||||
parent_submission=None,
|
parent_submission=None,
|
||||||
parent_comment_id=id,
|
parent_comment_id=id,
|
||||||
top_comment_id=parent.top_comment_id,
|
top_comment_id=parent.top_comment_id,
|
||||||
level=parent.level + 1,
|
level=parent.level + 1,
|
||||||
sentto=parent.sentto,
|
sentto=sentto,
|
||||||
body=body,
|
body=body,
|
||||||
body_html=body_html,
|
body_html=body_html,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue