mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-21 23:22:56 -05:00
2379bfe3ea
Port e38ce3beb7b83f43ef6e6f144c19b186c393910c to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
10 lines
382 B
TypeScript
10 lines
382 B
TypeScript
import { apiSubmitAccountNote } from 'flavours/glitch/api/accounts';
|
|
import { createDataLoadingThunk } from 'flavours/glitch/store/typed_functions';
|
|
|
|
export const submitAccountNote = createDataLoadingThunk(
|
|
'account_note/submit',
|
|
({ accountId, note }: { accountId: string; note: string }) =>
|
|
apiSubmitAccountNote(accountId, note),
|
|
(relationship) => ({ relationship }),
|
|
);
|