2024-06-25 23:45:41 +10:00
|
|
|
import { apiRequestPost } from 'mastodon/api';
|
2024-05-23 19:50:13 +10:00
|
|
|
import type { ApiRelationshipJSON } from 'mastodon/api_types/relationships';
|
|
|
|
|
|
|
|
export const apiSubmitAccountNote = (id: string, value: string) =>
|
2024-06-25 23:45:41 +10:00
|
|
|
apiRequestPost<ApiRelationshipJSON>(`v1/accounts/${id}/note`, {
|
2024-06-26 02:53:03 +10:00
|
|
|
comment: value,
|
2024-05-23 19:50:13 +10:00
|
|
|
});
|