mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
update search query to handle multiple labels
This commit is contained in:
parent
be68971a03
commit
d68c8e5e33
1 changed files with 3 additions and 2 deletions
|
|
@ -204,8 +204,9 @@ final class HomeFeedViewModel: ObservableObject {
|
|||
|
||||
var query = searchTerm
|
||||
|
||||
for label in selectedLabels {
|
||||
query.append(" label:\(label.name)")
|
||||
if !selectedLabels.isEmpty {
|
||||
query.append(" label:")
|
||||
query.append(selectedLabels.map(\.name).joined(separator: ","))
|
||||
}
|
||||
|
||||
return query
|
||||
|
|
|
|||
Loading…
Reference in a new issue