fixes for outgoing federation of comments

This commit is contained in:
freamon 2025-01-17 17:18:38 +00:00
parent f9c9991370
commit 989afa0344

View file

@ -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
} }