Make use of backend reply filtering

This commit is contained in:
Shpuld Shpuldson 2020-06-30 17:02:38 +03:00
parent 82944f862d
commit ea09bbecf8
8 changed files with 27 additions and 38 deletions

View file

@ -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])