♻️ Better local actor
This commit is contained in:
@@ -41,4 +41,6 @@ public class SnFediverseActor : ModelBase
|
||||
|
||||
public Instant? LastFetchedAt { get; set; }
|
||||
public Instant? LastActivityAt { get; set; }
|
||||
|
||||
public Guid? PublisherId { get; set; }
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user