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

View file

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