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