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-24 04:22:42 +10:00
|
|
|
({ accountId, note }: { accountId: string; note: string }) =>
|
|
|
|
apiSubmitAccountNote(accountId, note),
|
2024-05-23 19:50:13 +10:00
|
|
|
(relationship) => ({ relationship }),
|
|
|
|
{ skipLoading: true },
|
2023-09-12 00:09:22 +10:00
|
|
|
);
|