[frontend] Add RemoveUserFromFollowers to UserControllerModel

This commit is contained in:
pancakes 2024-11-03 12:27:20 +10:00
parent e10fafa805
commit f2387a8738
No known key found for this signature in database
GPG key ID: ED53D426432B861B

View file

@ -28,5 +28,6 @@ internal class UserControllerModel(ApiClient api)
api.Call(HttpMethod.Post, $"/users/{id}/bite"); api.Call(HttpMethod.Post, $"/users/{id}/bite");
public Task<bool> FollowUser(string id) => api.CallNullable(HttpMethod.Post, $"/users/{id}/follow"); public Task<bool> FollowUser(string id) => api.CallNullable(HttpMethod.Post, $"/users/{id}/follow");
public Task<bool> RemoveUserFromFollowers(string id) => api.CallNullable(HttpMethod.Post, $"/users/{id}/remove_from_followers");
public Task<bool> UnfollowUser(string id) => api.CallNullable(HttpMethod.Post, $"/users/{id}/unfollow"); public Task<bool> UnfollowUser(string id) => api.CallNullable(HttpMethod.Post, $"/users/{id}/unfollow");
} }