diff options
| author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-25 08:48:44 +0300 |
|---|---|---|
| committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-25 08:48:44 +0300 |
| commit | 5235e7ea1e133d699f7e3dc39473d44e789f15c9 (patch) | |
| tree | e3138384c56e966a5486de9e4ee901b385255610 /src | |
| parent | 1ae8935977b2e974b6727b6a02035c9d38c9d670 (diff) | |
Removed `with_muted` param usage for user favorites timeline endpoint (it only supports pagination params).
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/api/api.service.js | 4 |
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}` |
