From 8a49409b26c4a914bfddd19f46fe11a5986ba8fa Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Fri, 27 Oct 2023 11:39:31 +0200 Subject: [PATCH] Tag group: fix first tag not being included --- Packages/Timeline/Sources/Timeline/TimelineFilter.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/Timeline/Sources/Timeline/TimelineFilter.swift b/Packages/Timeline/Sources/Timeline/TimelineFilter.swift index d8286000..aca3d3bb 100644 --- a/Packages/Timeline/Sources/Timeline/TimelineFilter.swift +++ b/Packages/Timeline/Sources/Timeline/TimelineFilter.swift @@ -151,8 +151,8 @@ public enum TimelineFilter: Hashable, Equatable { } case let .tagGroup(_, tags): var tags = tags - tags.removeFirst() - return Timelines.hashtag(tag: tags.first ?? "", additional: tags, maxId: maxId) + let tag = tags.removeFirst() + return Timelines.hashtag(tag: tag, additional: tags, maxId: maxId) } } }