pl-api: update feature definitions for Mitra

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-27 20:49:24 +01:00
parent 38620f9b55
commit 3b2b42d781
3 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import {
} from '@/entities';
import { filteredArray } from '@/entities/utils';
import { GOTOSOCIAL, ICESHRIMP_NET, PIXELFED, PLEROMA } from '../features';
import { GOTOSOCIAL, ICESHRIMP_NET, MITRA, PIXELFED, PLEROMA } from '../features';
import { getNextLink, getPrevLink } from '../request';
import type { PaginatedResponse } from '../responses';
@ -98,6 +98,7 @@ const myAccount = (client: PlApiBaseClient & { accounts: ReturnType<typeof accou
switch (client.features.version.software) {
case GOTOSOCIAL:
case MITRA:
return client.paginatedGet('/api/v1/follow_requests/outgoing', { params }, accountSchema);
default:

View File

@ -1335,6 +1335,7 @@ const getFeatures = (instance: Instance) => {
*/
outgoingFollowRequests: any([
v.software === GOTOSOCIAL && gte(v.version, '0.20.0'),
v.software === MITRA && gte(v.version, '4.19.0'),
v.software === ICESHRIMP_NET,
instance.api_versions['outgoing_follow_requests.pleroma.pl-api'] >= 1,
]),