add tag_is_hashtag to remove some duplicate logic
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
1 parent
d7b5669ecf
commit
3b7f7706b5
3 files changed
+8
-6
No files matched your search
@@ -93,7 +93,7 @@ func decode_nostr_uri(_ s: String) -> NostrLink? {
|
||||
return
|
||||
}
|
||||
|
||||
if parts.count >= 2 && parts[0] == "hashtag" {
|
||||
if tag_is_hashtag(parts) {
|
||||
return .filter(NostrFilter.filter_hashtag([parts[1].lowercased()]))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user