mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36: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,
|
'distinguished': False,
|
||||||
}
|
}
|
||||||
if edit:
|
if edit:
|
||||||
note['updated']: ap_datetime(utcnow())
|
note['updated'] = ap_datetime(utcnow())
|
||||||
|
|
||||||
activity = 'create' if not edit else 'update'
|
activity = 'create' if not edit else 'update'
|
||||||
create_id = f"https://{current_app.config['SERVER_NAME']}/activities/{activity}/{gibberish(15)}"
|
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,
|
'to': to,
|
||||||
'cc': cc,
|
'cc': cc,
|
||||||
'@context': default_context(),
|
'@context': default_context(),
|
||||||
|
'audience': community.public_url(),
|
||||||
'tag': tag
|
'tag': tag
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue