From c902f28137899b384600b512ccd0667b9b018154 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:20:54 +1200 Subject: [PATCH] good point, andrew #194 --- app/activitypub/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 9dff6708..966233db 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -133,7 +133,7 @@ def post_to_activity(post: Post, community: Community): ], "object": { "id": create_id, - "actor": post.author.profile_id(), + "actor": post.author.profile_id() if post.author.is_local() else post.author.ap_public_url, "to": [ "https://www.w3.org/ns/activitystreams#Public" ],