diff --git a/Iceshrimp.Backend/Controllers/Renderers/NoteRenderer.cs b/Iceshrimp.Backend/Controllers/Renderers/NoteRenderer.cs index a71e74dc..5c25b921 100644 --- a/Iceshrimp.Backend/Controllers/Renderers/NoteRenderer.cs +++ b/Iceshrimp.Backend/Controllers/Renderers/NoteRenderer.cs @@ -72,7 +72,9 @@ public class NoteRenderer(UserRenderer userRenderer, DatabaseContext db, EmojiSe Visibility = RenderVisibility(note.Visibility), User = noteUser, Attachments = attachments.ToList(), - Reactions = reactions.ToList() + Reactions = reactions.ToList(), + Likes = note.LikeCount, + Renotes = note.RenoteCount }; } diff --git a/Iceshrimp.Shared/Schemas/NoteResponse.cs b/Iceshrimp.Shared/Schemas/NoteResponse.cs index 305eebd3..c086d46a 100644 --- a/Iceshrimp.Shared/Schemas/NoteResponse.cs +++ b/Iceshrimp.Shared/Schemas/NoteResponse.cs @@ -35,6 +35,8 @@ public class NoteBase [J("text")] public required string? Text { get; set; } [J("cw")] public required string? Cw { get; set; } [J("visibility")] public required string Visibility { get; set; } + [J("likes")] public required int Likes { get; set; } + [J("renotes")] public required int Renotes { get; set; } [J("user")] public required UserResponse User { get; set; } [J("attachments")] public required List Attachments { get; set; } [J("reactions")] public required List Reactions { get; set; }