From 99d8e16e4d19acbd811a9e19e087eeed04f7b638 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Thu, 23 Apr 2020 14:11:48 +0300 Subject: [PATCH] remove with_relationships as it doesn't help --- src/services/api/api.service.js | 4 +--- src/services/timeline_fetcher/timeline_fetcher.service.js | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index ee6bf151..7db1d094 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -496,8 +496,7 @@ const fetchTimeline = ({ userId = false, tag = false, withMuted = false, - withMove = false, - withRelationships = false + withMove = false }) => { const timelineUrls = { public: MASTODON_PUBLIC_TIMELINE, @@ -543,7 +542,6 @@ const fetchTimeline = ({ params.push(['count', 20]) params.push(['with_muted', withMuted]) - params.push(['with_relationships', withRelationships]) const queryString = map(params, (param) => `${param[0]}=${param[1]}`).join('&') url += `?${queryString}` diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js index 96fafff9..c6b28ad5 100644 --- a/src/services/timeline_fetcher/timeline_fetcher.service.js +++ b/src/services/timeline_fetcher/timeline_fetcher.service.js @@ -31,7 +31,6 @@ const fetchAndUpdate = ({ const { getters } = store const timelineData = rootState.statuses.timelines[camelCase(timeline)] const hideMutedPosts = getters.mergedConfig.hideMutedPosts - const replyVisibility = getters.mergedConfig.replyVisibility if (older) { args['until'] = until || timelineData.minId @@ -42,7 +41,6 @@ const fetchAndUpdate = ({ args['userId'] = userId args['tag'] = tag args['withMuted'] = !hideMutedPosts - args['withRelationships'] = replyVisibility === 'following' const numStatusesBeforeFetch = timelineData.statuses.length