Providing the post featured record in the response

This commit is contained in:
2025-10-24 00:51:30 +08:00
parent 4ba6206c9d
commit 15954dbfe2
4 changed files with 10 additions and 12 deletions

View File

@@ -915,6 +915,7 @@ public partial class PostService(
.Include(e => e.RepliedPost)
.Include(e => e.Categories)
.Include(e => e.Publisher)
.Include(e => e.FeaturedRecords)
.Take(featuredIds.Count)
.ToListAsync();
posts = posts.OrderBy(e => featuredIds.IndexOf(e.Id)).ToList();