2024-05-23 18:50:13 +09:00
|
|
|
import { apiSubmitAccountNote } from 'mastodon/api/accounts';
|
|
|
|
import { createDataLoadingThunk } from 'mastodon/store/typed_functions';
|
2023-09-11 23:09:22 +09:00
|
|
|
|
2024-05-23 18:50:13 +09:00
|
|
|
export const submitAccountNote = createDataLoadingThunk(
|
2023-09-11 23:09:22 +09:00
|
|
|
'account_note/submit',
|
2024-05-24 03:22:42 +09:00
|
|
|
({ accountId, note }: { accountId: string; note: string }) =>
|
|
|
|
apiSubmitAccountNote(accountId, note),
|
2024-05-23 18:50:13 +09:00
|
|
|
(relationship) => ({ relationship }),
|
|
|
|
{ skipLoading: true },
|
2023-09-11 23:09:22 +09:00
|
|
|
);
|