diff --git a/src/actions/trending-statuses.ts b/src/actions/trending-statuses.ts index 7ccab27ab..e22448784 100644 --- a/src/actions/trending-statuses.ts +++ b/src/actions/trending-statuses.ts @@ -17,10 +17,10 @@ const fetchTrendingStatuses = () => const instance = state.instance; const features = getFeatures(instance); - if (!features.trendingStatuses && !features.trendingTruths) return; + if (!features.trendingStatuses) return; dispatch({ type: TRENDING_STATUSES_FETCH_REQUEST }); - return api(getState).get(features.trendingTruths ? '/api/v1/truth/trending/truths' : '/api/v1/trends/statuses').then(({ data: statuses }) => { + return api(getState).get('/api/v1/trends/statuses').then(({ data: statuses }) => { dispatch(importFetchedStatuses(statuses)); dispatch({ type: TRENDING_STATUSES_FETCH_SUCCESS, statuses }); return statuses; diff --git a/src/utils/features.ts b/src/utils/features.ts index 638983cd8..b479c4611 100644 --- a/src/utils/features.ts +++ b/src/utils/features.ts @@ -923,12 +923,6 @@ const getInstanceFeatures = (instance: Instance) => { v.software === MASTODON && gte(v.compatVersion, '3.5.0'), ]), - /** - * Truth Social trending statuses API. - * @see GET /api/v1/truth/trending/truths - */ - trendingTruths: v.software === TRUTHSOCIAL, - /** * Can display trending hashtags. * @see GET /api/v1/trends