🐛 Fix post reading issue
This commit is contained in:
		| @@ -76,7 +76,7 @@ public class Post : ModelBase, IIdentifiedResource, IActivity | ||||
|     public Publisher.Publisher Publisher { get; set; } = null!; | ||||
|  | ||||
|     public ICollection<PostAward> Awards { get; set; } = null!; | ||||
|     public ICollection<PostReaction> Reactions { get; set; } = new List<PostReaction>(); | ||||
|     [JsonIgnore] public ICollection<PostReaction> Reactions { get; set; } = new List<PostReaction>(); | ||||
|     public ICollection<PostTag> Tags { get; set; } = new List<PostTag>(); | ||||
|     public ICollection<PostCategory> Categories { get; set; } = new List<PostCategory>(); | ||||
|     [JsonIgnore] public ICollection<PostCollection> Collections { get; set; } = new List<PostCollection>(); | ||||
|   | ||||
| @@ -894,6 +894,7 @@ public partial class PostService( | ||||
|         var posts = await db.Posts | ||||
|             .Where(e => featuredIds.Contains(e.Id)) | ||||
|             .Include(e => e.ForwardedPost) | ||||
|             .Include(e => e.RepliedPost) | ||||
|             .Include(e => e.Categories) | ||||
|             .Include(e => e.Publisher) | ||||
|             .Take(featuredIds.Count) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user