Enable Trends and Suggestions for TruthSocial

This commit is contained in:
Alex Gleason 2022-03-30 10:58:06 -05:00
parent 3e9e0486ba
commit b363c20359
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 6 additions and 1 deletions

View File

@ -48,14 +48,19 @@ const getInstanceFeatures = (instance: Instance) => {
]), ]),
suggestions: any([ suggestions: any([
v.software === MASTODON && gte(v.compatVersion, '2.4.3'), v.software === MASTODON && gte(v.compatVersion, '2.4.3'),
v.software === TRUTHSOCIAL,
features.includes('v2_suggestions'), features.includes('v2_suggestions'),
]), ]),
suggestionsV2: any([ suggestionsV2: any([
v.software === MASTODON && gte(v.compatVersion, '3.4.0'), v.software === MASTODON && gte(v.compatVersion, '3.4.0'),
v.software === TRUTHSOCIAL,
features.includes('v2_suggestions'), features.includes('v2_suggestions'),
]), ]),
blockersVisible: features.includes('blockers_visible'), blockersVisible: features.includes('blockers_visible'),
trends: v.software === MASTODON && gte(v.compatVersion, '3.0.0'), trends: any([
v.software === MASTODON && gte(v.compatVersion, '3.0.0'),
v.software === TRUTHSOCIAL,
]),
mediaV2: any([ mediaV2: any([
v.software === MASTODON && gte(v.compatVersion, '3.1.3'), v.software === MASTODON && gte(v.compatVersion, '3.1.3'),
// Even though Pleroma supports these endpoints, it has disadvantages // Even though Pleroma supports these endpoints, it has disadvantages