From 7ab91b7dc5dbad51dc9c5fd1c6eb1c3345cbee18 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 3 Jun 2024 12:09:10 +1200 Subject: [PATCH] add actor (author?) to Page --- app/activitypub/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 51cfc839..39bcde88 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -133,14 +133,15 @@ def post_to_activity(post: Post, community: Community): ], "object": { "id": create_id, - "actor": post.author.ap_public_url, + "actor": post.author.profile_id(), "to": [ "https://www.w3.org/ns/activitystreams#Public" ], "object": { "type": "Page", "id": post.ap_id, - "attributedTo": post.author.ap_public_url, + "attributedTo": post.author.profile_id(), + "actor": post.author.profile_id(), "to": [ f"https://{current_app.config['SERVER_NAME']}/c/{community.name}", "https://www.w3.org/ns/activitystreams#Public"