From b73b6fdcae47b00dc747590688a1072a5f668d3e Mon Sep 17 00:00:00 2001 From: freamon Date: Fri, 23 Aug 2024 21:23:58 +0000 Subject: [PATCH] Bugfix: public_url() in inner object of Updates too to avoid remote verification failures --- app/post/routes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/post/routes.py b/app/post/routes.py index 8a5efba4..96035a14 100644 --- a/app/post/routes.py +++ b/app/post/routes.py @@ -1008,9 +1008,9 @@ def federate_post_update(post): page_json = { 'type': 'Page', 'id': post.ap_id, - 'attributedTo': current_user.ap_profile_id, + 'attributedTo': current_user.public_url(), 'to': [ - post.community.ap_profile_id, + post.community.public_url(), 'https://www.w3.org/ns/activitystreams#Public' ], 'name': post.title, @@ -1024,7 +1024,7 @@ def federate_post_update(post): 'stickied': post.sticky, 'published': ap_datetime(post.posted_at), 'updated': ap_datetime(post.edited_at), - 'audience': post.community.ap_profile_id, + 'audience': post.community.public_url(), 'language': { 'identifier': post.language_code(), 'name': post.language_name()