💄 Improvments in the activitypub

This commit is contained in:
2026-01-02 13:56:37 +08:00
parent 24b1f24dea
commit 306934304e
5 changed files with 75 additions and 24 deletions

View File

@@ -169,7 +169,7 @@ public class ActivityPubDeliveryService(
["published"] = (post.PublishedAt ?? post.CreatedAt).ToDateTimeOffset(),
["to"] = new[] { ActivityPubObjectFactory.PublicTo },
["cc"] = new[] { $"{actorUrl}/followers" },
["object"] = objFactory.CreatePostObject(post, actorUrl)
["object"] = await objFactory.CreatePostObject(post, actorUrl)
};
var followers = await GetRemoteFollowersAsync();
@@ -205,7 +205,7 @@ public class ActivityPubDeliveryService(
["published"] = (post.PublishedAt ?? post.CreatedAt).ToDateTimeOffset(),
["to"] = new[] { ActivityPubObjectFactory.PublicTo },
["cc"] = new[] { $"{actorUrl}/followers" },
["object"] = objFactory.CreatePostObject(post, actorUrl)
["object"] = await objFactory.CreatePostObject(post, actorUrl)
};
var followers = await GetRemoteFollowersAsync();