mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
fixes for outgoing federation of comments
This commit is contained in:
parent
f9c9991370
commit
989afa0344
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,7 @@ def send_reply(user_id, reply_id, parent_id, edit=False):
|
|||
'distinguished': False,
|
||||
}
|
||||
if edit:
|
||||
note['updated']: ap_datetime(utcnow())
|
||||
note['updated'] = ap_datetime(utcnow())
|
||||
|
||||
activity = 'create' if not edit else 'update'
|
||||
create_id = f"https://{current_app.config['SERVER_NAME']}/activities/{activity}/{gibberish(15)}"
|
||||
|
@ -162,6 +162,7 @@ def send_reply(user_id, reply_id, parent_id, edit=False):
|
|||
'to': to,
|
||||
'cc': cc,
|
||||
'@context': default_context(),
|
||||
'audience': community.public_url(),
|
||||
'tag': tag
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue