mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-21 15:13:01 -05:00
8d6058b40a
Port 10ec421dd4e0da987e69a3dd7f4f696f9c5878e0 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
10 lines
378 B
TypeScript
10 lines
378 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: string, note: string) => apiSubmitAccountNote(accountId, note),
|
|
(relationship) => ({ relationship }),
|
|
{ skipLoading: true },
|
|
);
|