mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user