Tag group: fix first tag not being included

This commit is contained in:
Thomas Ricouard 2023-10-27 11:39:31 +02:00
parent e9e1992806
commit 8a49409b26

View file

@ -151,8 +151,8 @@ public enum TimelineFilter: Hashable, Equatable {
} }
case let .tagGroup(_, tags): case let .tagGroup(_, tags):
var tags = tags var tags = tags
tags.removeFirst() let tag = tags.removeFirst()
return Timelines.hashtag(tag: tags.first ?? "", additional: tags, maxId: maxId) return Timelines.hashtag(tag: tag, additional: tags, maxId: maxId)
} }
} }
} }