Remove Trending Truths
This commit is contained in:
parent
f01d088d06
commit
f3ff33ff50
2 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue