🐛 Fix accept follow request in AP

This commit is contained in:
2026-01-01 01:28:29 +08:00
parent 78f1d0ecd3
commit d07e33cb75
2 changed files with 8 additions and 5 deletions

View File

@@ -18,8 +18,7 @@ public class ActivityPubDeliveryService(
public async Task<bool> SendAcceptActivityAsync(
SnFediverseActor actor,
string followerActorUri,
string followActivityId
string followerActorUri
)
{
var actorUrl = actor.Uri;
@@ -38,7 +37,12 @@ public class ActivityPubDeliveryService(
["id"] = $"{actorUrl}/accepts/{Guid.NewGuid()}",
["type"] = "Accept",
["actor"] = actorUrl,
["object"] = followActivityId
["object"] = new Dictionary<string, object>
{
["type"] = "Follow",
["actor"] = followerActorUri,
["object"] = actorUrl
}
};
return await EnqueueActivityDeliveryAsync("Accept", activity, actorUrl, followerActor.InboxUri);