mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
[Glitch] Change apiRequest to accept both params and data
Port 547e97945d
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { apiRequest } from 'flavours/glitch/api';
|
||||
import { apiRequestPost } from 'flavours/glitch/api';
|
||||
import type { ApiRelationshipJSON } from 'flavours/glitch/api_types/relationships';
|
||||
|
||||
export const apiSubmitAccountNote = (id: string, value: string) =>
|
||||
apiRequest<ApiRelationshipJSON>('post', `v1/accounts/${id}/note`, {
|
||||
comment: value,
|
||||
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/note`, {
|
||||
data: {
|
||||
comment: value,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user