From 989afa0344a8f39835ff8b4cda883377fb9d3fac Mon Sep 17 00:00:00 2001 From: freamon Date: Fri, 17 Jan 2025 17:18:38 +0000 Subject: [PATCH] fixes for outgoing federation of comments --- app/shared/tasks/notes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/shared/tasks/notes.py b/app/shared/tasks/notes.py index 5f424621..1d38aa68 100644 --- a/app/shared/tasks/notes.py +++ b/app/shared/tasks/notes.py @@ -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 }