well-goknown/nostr/helpers.go

12 lines
234 B
Go
Raw Normal View History

2024-08-17 19:18:55 +00:00
package nostr
func checknPubsInDb(npubs []string) bool {
var uid int
for _, npub := range npubs {
if err := DB.QueryRow("SELECT id FROM users WHERE pubkey=$1", npub).Scan(&uid); err == nil {
return true
}
}
return false
}