aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2020-05-25 10:48:45 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2020-05-25 10:48:45 +0000
commitcf3fbdd61096d3e51c09179474f383f8351a33cb (patch)
treee3138384c56e966a5486de9e4ee901b385255610
parent1ae8935977b2e974b6727b6a02035c9d38c9d670 (diff)
parent5235e7ea1e133d699f7e3dc39473d44e789f15c9 (diff)
Merge branch 'fix/favorites-timeline-unsupported-with-muted' into 'develop'
Removed `with_muted` param usage for user favorites timeline endpoint See merge request pleroma/pleroma-fe!1119
-rw-r--r--src/services/api/api.service.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index 7f82d2fa..9c7530a2 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -538,9 +538,11 @@ const fetchTimeline = ({
if (timeline === 'public' || timeline === 'publicAndExternal') {
params.push(['only_media', false])
}
+ if (timeline !== 'favorites') {
+ params.push(['with_muted', withMuted])
+ }
params.push(['limit', 20])
- params.push(['with_muted', withMuted])
const queryString = map(params, (param) => `${param[0]}=${param[1]}`).join('&')
url += `?${queryString}`