mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 11:22:25 -05:00
[feature] Allow import of following and blocks via CSV (#3150)
* [feature] Import follows + blocks via settings panel * test import follows
This commit is contained in:
parent
697261da53
commit
7b5917d6ae
25 changed files with 1247 additions and 50 deletions
|
|
@ -125,6 +125,16 @@ const extended = gtsApi.injectEndpoints({
|
|||
return { data: null };
|
||||
}
|
||||
}),
|
||||
|
||||
importData: build.mutation({
|
||||
query: (formData) => ({
|
||||
method: "POST",
|
||||
url: `/api/v1/import`,
|
||||
asForm: true,
|
||||
body: formData,
|
||||
discardEmpty: true
|
||||
}),
|
||||
}),
|
||||
})
|
||||
});
|
||||
|
||||
|
|
@ -135,4 +145,5 @@ export const {
|
|||
useExportListsMutation,
|
||||
useExportBlocksMutation,
|
||||
useExportMutesMutation,
|
||||
useImportDataMutation,
|
||||
} = extended;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue