Fix createDataLoadingThunk and related actions (#30408)

This commit is contained in:
Renaud Chaput
2024-05-23 20:22:42 +02:00
committed by GitHub
parent 133d98fb25
commit b6fd14f0e2
12 changed files with 41 additions and 35 deletions

View File

@@ -2,6 +2,6 @@ import { apiRequest } from 'mastodon/api';
import type { ApiRelationshipJSON } from 'mastodon/api_types/relationships';
export const apiSubmitAccountNote = (id: string, value: string) =>
apiRequest<ApiRelationshipJSON>('post', `/api/v1/accounts/${id}/note`, {
apiRequest<ApiRelationshipJSON>('post', `v1/accounts/${id}/note`, {
comment: value,
});