Add ability to search for all accounts when creating a list in web UI (#33036)

This commit is contained in:
Eugen Rochko
2024-12-03 10:42:52 +01:00
committed by GitHub
parent 6cf87762a4
commit 7135f513a4
25 changed files with 459 additions and 374 deletions

View File

@@ -5,3 +5,16 @@ export const apiSubmitAccountNote = (id: string, value: string) =>
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/note`, {
comment: value,
});
export const apiFollowAccount = (
id: string,
params?: {
reblogs: boolean;
},
) =>
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/follow`, {
...params,
});
export const apiUnfollowAccount = (id: string) =>
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/unfollow`);