From f0cb04d5b7691df8dfb44068cafd66d4238cf994 Mon Sep 17 00:00:00 2001 From: Lilian Date: Thu, 26 Sep 2024 20:55:48 +0200 Subject: [PATCH] [frontend/core] Update NoteControllerModel with renotes 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 7b37da9c..0b4b2cb3 100644 --- a/Iceshrimp.Frontend/Core/ControllerModels/NoteControllerModel.cs +++ b/Iceshrimp.Frontend/Core/ControllerModels/NoteControllerModel.cs @@ -53,6 +53,9 @@ internal class NoteControllerModel(ApiClient api) public Task UnrenoteNote(string id) => api.CallNullable(HttpMethod.Post, $"/notes/{id}/unrenote"); + public Task?> GetRenotes(string id) => + api.CallNullable>(HttpMethod.Get, $"/notes/{id}/renotes"); + public Task ReactToNote(string id, string name) => api.CallNullable(HttpMethod.Post, $"/notes/{id}/react/{name}");