better error handling

This commit is contained in:
Henry Jameson 2025-06-29 15:24:04 +03:00
commit e66b1edcf4
2 changed files with 8 additions and 11 deletions

View file

@ -759,7 +759,7 @@ const fetchTimeline = ({
if (replyVisibility !== 'all') {
params.push(['reply_visibility', replyVisibility])
}
if (includeTypes.length > 0) {
if (includeTypes.size > 0) {
includeTypes.forEach(type => {
params.push(['include_types[]', type])
})