♻️ Better local actor

This commit is contained in:
2025-12-30 00:31:09 +08:00
parent f556313f1d
commit 72b0739f41
10 changed files with 2810 additions and 78 deletions

View File

@@ -41,4 +41,6 @@ public class SnFediverseActor : ModelBase
public Instant? LastFetchedAt { get; set; }
public Instant? LastActivityAt { get; set; }
public Guid? PublisherId { get; set; }
}

View File

@@ -11,11 +11,8 @@ public class SnFediverseRelationship : ModelBase
public Guid Id { get; set; } = Guid.NewGuid();
public Guid ActorId { get; set; }
[JsonIgnore]
public SnFediverseActor Actor { get; set; } = null!;
public Guid TargetActorId { get; set; }
[JsonIgnore]
public SnFediverseActor TargetActor { get; set; } = null!;
public RelationshipState State { get; set; } = RelationshipState.Pending;
@@ -29,13 +26,7 @@ public class SnFediverseRelationship : ModelBase
public Instant? FollowedAt { get; set; }
public Instant? FollowedBackAt { get; set; }
[MaxLength(4096)]
public string? RejectReason { get; set; }
public bool IsLocalActor { get; set; }
public Guid? LocalAccountId { get; set; }
public Guid? LocalPublisherId { get; set; }
[MaxLength(4096)] public string? RejectReason { get; set; }
}
public enum RelationshipState