fix includeTypes

This commit is contained in:
Henry Jameson 2026-06-22 20:15:35 +03:00
commit 1007015582
2 changed files with 6 additions and 11 deletions

View file

@ -312,6 +312,7 @@ export const fetchTimeline = ({
notifications: MASTODON_USER_NOTIFICATIONS_URL,
}
const urlFunc = timelineUrls[timeline]
const twoArgs = new Set([
'user',
@ -345,8 +346,6 @@ export const fetchTimeline = ({
const isNotifications = timeline === 'notifications'
const urlFunc = timelineUrls[timeline]
if (timeline === 'media') {
params.onlyMedia = true
}
@ -363,7 +362,7 @@ export const fetchTimeline = ({
params.folderId = bookmarkFolderId
}
if (isNotifications && includeTypes.size > 0) {
if (isNotifications && includeTypes.length > 0) {
params.includeTypes = includeTypes
}