[frontend/core] Update NoteControllerModel with likes endpoint

This commit is contained in:
Lilian 2024-09-26 21:08:23 +02:00
parent 3a4738d1fd
commit 0b40aea8d4
No known key found for this signature in database

View file

@ -40,6 +40,9 @@ internal class NoteControllerModel(ApiClient api)
public Task<ValueResponse?> UnlikeNote(string id) =>
api.CallNullable<ValueResponse>(HttpMethod.Post, $"/notes/{id}/unlike");
public Task<List<UserResponse>?> GetNoteLikes(string id) =>
api.CallNullable<List<UserResponse>>(HttpMethod.Get, $"/notes/{id}/likes");
public Task<ValueResponse?> RenoteNote(string id, NoteVisibility? visibility = null)
{
var query = new QueryString();