Post reactions and replies counting

🎨 Improve the styles of post service
This commit is contained in:
2025-06-20 00:31:16 +08:00
parent abc89dc782
commit 27276c66c5
4 changed files with 68 additions and 28 deletions

View File

@ -44,6 +44,7 @@ public class Post : ModelBase, IIdentifiedResource, IActivity
public int Upvotes { get; set; }
public int Downvotes { get; set; }
[NotMapped] public Dictionary<string, int> ReactionsCount { get; set; } = new();
[NotMapped] public int RepliesCount { get; set; }
public Guid? RepliedPostId { get; set; }
public Post? RepliedPost { get; set; }