Include recipients in edited dm

merge-requests/30/head
Bob Mottram 2022-11-16 10:24:00 +00:00
parent 07444e0658
commit 7a64a58223
2 changed files with 3 additions and 0 deletions

View File

@ -19225,6 +19225,7 @@ class PubServer(BaseHTTPRequestHandler):
print('WARN: no nickname found when receiving ' + post_type +
' path ' + path)
return -1
# get the message id of an edited post
edited_postid = None
if '?editid=' in path:

View File

@ -280,6 +280,8 @@ def html_new_post(edit_post_params: {},
conversation_id = edited_post_json['object']['conversation']
if edit_post_params.get('replyTo'):
in_reply_to = edit_post_params['replyTo']
if box_name == 'dm':
mentions = edited_post_json['object']['to']
# default subject line or content warning
default_subject = ''