You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
393 B
10 lines
393 B
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 }, |
|
);
|
|
|