2024-05-23 19:50:13 +10:00
|
|
|
import { apiRequest } from 'mastodon/api';
|
|
|
|
import type { ApiRelationshipJSON } from 'mastodon/api_types/relationships';
|
|
|
|
|
|
|
|
export const apiSubmitAccountNote = (id: string, value: string) =>
|
2024-05-24 04:22:42 +10:00
|
|
|
apiRequest<ApiRelationshipJSON>('post', `v1/accounts/${id}/note`, {
|
2024-05-23 19:50:13 +10:00
|
|
|
comment: value,
|
|
|
|
});
|