Only support Pleroma for now

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2022-11-04 22:36:39 +01:00
parent 3448022965
commit 1ea4ae3a57
5 changed files with 6 additions and 41 deletions

View File

@ -353,12 +353,6 @@ const getInstanceFeatures = (instance: Instance) => {
*/
importData: v.software === PLEROMA && gte(v.version, '2.2.0'),
/**
* Supports V2 instance endpoint.
* @see GET /api/v2/instance
*/
instanceV2: v.software === MASTODON && gte(v.compatVersion, '4.0.0'),
/**
* Can create, view, and manage lists.
* @see {@link https://docs.joinmastodon.org/methods/timelines/lists/}
@ -618,7 +612,7 @@ const getInstanceFeatures = (instance: Instance) => {
* Can translate statuses.
* @see POST /api/v1/statuses/:id/translate
*/
translations: v.software === MASTODON && instance.configuration.getIn(['translation', 'enabled'], false),
translations: features.includes('translation'),
/**
* Trending statuses.