Fix report modal not working, add include_types

This commit is contained in:
Shpuld Shpuldson 2021-02-01 12:55:23 +02:00
commit 3822a73a49
4 changed files with 30 additions and 7 deletions

View file

@ -498,7 +498,8 @@ const fetchTimeline = ({
userId = false,
tag = false,
withMuted = false,
replyVisibility = 'all'
replyVisibility = 'all',
includeTypes = []
}) => {
const timelineUrls = {
public: MASTODON_PUBLIC_TIMELINE,
@ -545,6 +546,11 @@ const fetchTimeline = ({
if (replyVisibility !== 'all') {
params.push(['reply_visibility', replyVisibility])
}
if (includeTypes.length > 0) {
includeTypes.forEach(type => {
params.push(['include_types[]', type])
})
}
params.push(['limit', 20])