mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-04-25 06:18:04 +02:00
use .Find() instead of .GetFirst() everywhere.
This commit is contained in:
@@ -47,7 +47,7 @@ router.Route().
|
||||
return true
|
||||
case event.Kind <= 12 && event.Kind >= 9:
|
||||
return true
|
||||
case event.Tags.GetFirst([]string{"h", ""}) != nil:
|
||||
case event.Tags.Find("h") != nil:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user