diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx index f7b48b7..c91f4a9 100644 --- a/src/components/timeline.jsx +++ b/src/components/timeline.jsx @@ -535,15 +535,15 @@ const TimelineItem = memo( const url = instance ? `/${instance}/s/${actualStatusID}` : `/s/${actualStatusID}`; - let title = ''; - if (type === 'boosts') { - title = `${items.length} Boosts`; - } else if (type === 'pinned') { - title = 'Pinned posts'; - } - const isCarousel = type === 'boosts' || type === 'pinned'; if (items) { const fItems = filteredItems(items, filterContext); + let title = ''; + if (type === 'boosts') { + title = `${fItems.length} Boosts`; + } else if (type === 'pinned') { + title = 'Pinned posts'; + } + const isCarousel = type === 'boosts' || type === 'pinned'; if (isCarousel) { // Here, we don't hide filtered posts, but we sort them last fItems.sort((a, b) => {