From 0b40aea8d41bf3708d9a9358e647fc6019eba7e1 Mon Sep 17 00:00:00 2001 From: Lilian Date: Thu, 26 Sep 2024 21:08:23 +0200 Subject: [PATCH] [frontend/core] Update NoteControllerModel with likes endpoint --- .../Core/ControllerModels/NoteControllerModel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Iceshrimp.Frontend/Core/ControllerModels/NoteControllerModel.cs b/Iceshrimp.Frontend/Core/ControllerModels/NoteControllerModel.cs index 72d4220b..7b37da9c 100644 --- a/Iceshrimp.Frontend/Core/ControllerModels/NoteControllerModel.cs +++ b/Iceshrimp.Frontend/Core/ControllerModels/NoteControllerModel.cs @@ -40,6 +40,9 @@ internal class NoteControllerModel(ApiClient api) public Task UnlikeNote(string id) => api.CallNullable(HttpMethod.Post, $"/notes/{id}/unlike"); + public Task?> GetNoteLikes(string id) => + api.CallNullable>(HttpMethod.Get, $"/notes/{id}/likes"); + public Task RenoteNote(string id, NoteVisibility? visibility = null) { var query = new QueryString();