mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
Remove spaces from hashtag searches
Changelog-Changed: Remove spaces from hashtag searches Closes: #773 Fixes: #741
This commit is contained in:
parent
04fa4edad8
commit
8059408d5f
@ -96,7 +96,7 @@ func search_changed(profiles: Profiles, _ new: String) -> Search? {
|
||||
}
|
||||
|
||||
if new.first! == "#" {
|
||||
let ht = String(new.dropFirst())
|
||||
let ht = String(new.dropFirst().filter{$0 != " "})
|
||||
return .hashtag(ht)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user