aboutsummaryrefslogtreecommitdiff
path: root/src/services/api/api.service.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2020-07-02 04:50:03 +0000
committerShpuld Shpludson <shp@cock.li>2020-07-02 04:50:03 +0000
commitc0fb35b10628df0e0b84838a5adfd77840f40b41 (patch)
treee463425072e0664e604bff2adc3cb36030465fc6 /src/services/api/api.service.js
parent0ca3a6e63d6dd8ed59cdf0c14780b5616667accc (diff)
parentbeb160bd537abcb7f2e147c7954886d2f51d385f (diff)
Merge branch 'develop' into 'xenofem/pleroma-fe-rebased-image-description-authoring'
# Conflicts: # CHANGELOG.md
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 cb205e3f..093c2013 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])