♻️ Refactored fediverse relationships

This commit is contained in:
2025-12-31 18:29:35 +08:00
parent 2b6cf503a5
commit caf5468dad
9 changed files with 2437 additions and 42 deletions

View File

@@ -789,7 +789,7 @@ public class PublisherService(
.FirstOrDefaultAsync(a => a.PublisherId == publisherId);
var followerCount = await db.FediverseRelationships
.Where(r => r.Actor.PublisherId == publisherId && r.IsFollowedBy)
.Where(r => r.TargetActor.PublisherId == publisherId && r.State == RelationshipState.Accepted)
.CountAsync();
var publisher = await db.Publishers