Remove Trending Truths

This commit is contained in:
Alex Gleason 2023-09-22 11:42:28 -05:00
parent f01d088d06
commit f3ff33ff50
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 8 deletions

View file

@ -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;

View file

@ -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