diff --git a/DysonNetwork.Sphere/Post/Post.cs b/DysonNetwork.Sphere/Post/Post.cs index f1b3859..d4acec5 100644 --- a/DysonNetwork.Sphere/Post/Post.cs +++ b/DysonNetwork.Sphere/Post/Post.cs @@ -64,7 +64,7 @@ public class Post : ModelBase, IIdentifiedResource, IActivity public ICollection Reactions { get; set; } = new List(); public ICollection Tags { get; set; } = new List(); public ICollection Categories { get; set; } = new List(); - public ICollection Collections { get; set; } = new List(); + [JsonIgnore] public ICollection Collections { get; set; } = new List(); [JsonIgnore] public bool Empty => Content == null && Attachments.Count == 0 && ForwardedPostId == null; [NotMapped] public bool IsTruncated { get; set; } = false; @@ -91,7 +91,7 @@ public class PostTag : ModelBase public Guid Id { get; set; } [MaxLength(128)] public string Slug { get; set; } = null!; [MaxLength(256)] public string? Name { get; set; } - public ICollection Posts { get; set; } = new List(); + [JsonIgnore] public ICollection Posts { get; set; } = new List(); } public class PostCategory : ModelBase @@ -99,7 +99,7 @@ public class PostCategory : ModelBase public Guid Id { get; set; } [MaxLength(128)] public string Slug { get; set; } = null!; [MaxLength(256)] public string? Name { get; set; } - public ICollection Posts { get; set; } = new List(); + [JsonIgnore] public ICollection Posts { get; set; } = new List(); } public class PostCollection : ModelBase @@ -131,4 +131,4 @@ public class PostReaction : ModelBase [JsonIgnore] public Post Post { get; set; } = null!; public Guid AccountId { get; set; } public Account.Account Account { get; set; } = null!; -} \ No newline at end of file +}