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