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-23 18:50:13 +09:00
|
|
|
(accountId: string, note: string) => apiSubmitAccountNote(accountId, note),
|
|
|
|
(relationship) => ({ relationship }),
|
|
|
|
{ skipLoading: true },
|
2023-09-11 23:09:22 +09:00
|
|
|
);
|