mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-18 13:53:03 +01:00
13 lines
207 B
Go
13 lines
207 B
Go
|
package nip70
|
||
|
|
||
|
import "github.com/nbd-wtf/go-nostr"
|
||
|
|
||
|
func IsProtected(event *nostr.Event) bool {
|
||
|
for _, tag := range event.Tags {
|
||
|
if len(tag) == 1 && tag[0] == "-" {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|