Fix report modal not working, add include_types
This commit is contained in:
parent
8334649c11
commit
3822a73a49
4 changed files with 30 additions and 7 deletions
|
|
@ -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])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue