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