:drunk: Optimize code of publisher actor

This commit is contained in:
2026-01-01 02:15:49 +08:00
parent 247296476c
commit de3aa21909
2 changed files with 7 additions and 9 deletions

View File

@@ -798,14 +798,12 @@ public class PublisherService(
if (publisher == null)
return null;
var assetsBaseUrl = configuration["ActivityPub:FileBaseUrl"] ?? $"https://{Domain}/files";
return new FediverseStatus
{
Enabled = actor != null,
Actor = actor,
FollowerCount = followerCount,
ActorUri = actor != null ? actor.Uri : null
ActorUri = actor?.Uri
};
}