v2 Media API: disable for Pleroma (use v1)

profile-avatar-switcher
Alex Gleason 2021-10-19 11:28:48 -05:00
rodzic c6067dbccb
commit 343a210d96
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -29,7 +29,8 @@ export const getFeatures = createSelector([
trends: v.software === MASTODON && gte(v.compatVersion, '3.0.0'),
mediaV2: any([
v.software === MASTODON && gte(v.compatVersion, '3.1.3'),
v.software === PLEROMA && gte(v.version, '2.1.0'),
// Even though Pleroma supports these endpoints, it has disadvantages
// v.software === PLEROMA && gte(v.version, '2.1.0'),
]),
directTimeline: any([
v.software === MASTODON && lt(v.compatVersion, '3.0.0'),