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

@@ -146,9 +146,8 @@ public class SnPostCollection : ModelBase
public class SnPostFeaturedRecord : ModelBase
{
public Guid Id { get; set; }
public Guid PostId { get; set; }
public SnPost Post { get; set; } = null!;
[JsonIgnore] public SnPost Post { get; set; } = null!;
public Instant? FeaturedAt { get; set; }
public int SocialCredits { get; set; }
}