[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:
tobi
2024-08-02 13:41:46 +02:00
committed by GitHub
parent 697261da53
commit 7b5917d6ae
25 changed files with 1247 additions and 50 deletions

View File

@ -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;