Fix feature gating of Pleroma data imports

This commit is contained in:
Alex Gleason
2022-05-24 14:06:59 -04:00
parent 5bfec696d9
commit 86e673404e
3 changed files with 6 additions and 7 deletions

View File

@ -307,10 +307,12 @@ const getInstanceFeatures = (instance: Instance) => {
importAPI: v.software === PLEROMA,
/**
* Pleroma import mutes API.
* Pleroma import endpoints.
* @see POST /api/pleroma/follow_import
* @see POST /api/pleroma/blocks_import
* @see POST /api/pleroma/mutes_import
*/
importMutes: v.software === PLEROMA && gte(v.version, '2.2.0'),
importData: v.software === PLEROMA && gte(v.version, '2.2.0'),
/**
* Can create, view, and manage lists.