aboutsummaryrefslogtreecommitdiff
path: root/src/services/api/api.service.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-06-30 17:02:38 +0300
committerShpuld Shpuldson <shp@cock.li>2020-06-30 17:02:38 +0300
commitea09bbecf8b7715a1242a104b6233a7c3b5ac588 (patch)
tree0657dab0a3c2b94741c87d6e7ef9f6f7526f4e8b /src/services/api/api.service.js
parent82944f862d07db46cf342f2ee75b2ab6ddccc4fc (diff)
Make use of backend reply filtering
Diffstat (limited to 'src/services/api/api.service.js')
-rw-r--r--src/services/api/api.service.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js
index dfffc291..7e5e9645 100644
--- a/src/services/api/api.service.js
+++ b/src/services/api/api.service.js
@@ -498,7 +498,8 @@ const fetchTimeline = ({
until = false,
userId = false,
tag = false,
- withMuted = false
+ withMuted = false,
+ replyVisibility = 'all'
}) => {
const timelineUrls = {
public: MASTODON_PUBLIC_TIMELINE,
@@ -541,6 +542,9 @@ const fetchTimeline = ({
if (timeline !== 'favorites') {
params.push(['with_muted', withMuted])
}
+ if (replyVisibility !== 'all') {
+ params.push(['reply_visibility', replyVisibility])
+ }
params.push(['limit', 20])