mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-29 19:40:23 -05:00
11 lines
393 B
TypeScript
11 lines
393 B
TypeScript
import { apiSubmitAccountNote } from 'mastodon/api/accounts';
|
|
import { createDataLoadingThunk } from 'mastodon/store/typed_functions';
|
|
|
|
export const submitAccountNote = createDataLoadingThunk(
|
|
'account_note/submit',
|
|
({ accountId, note }: { accountId: string; note: string }) =>
|
|
apiSubmitAccountNote(accountId, note),
|
|
(relationship) => ({ relationship }),
|
|
{ skipLoading: true },
|
|
);
|