go-nostr/nip70/nip70.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
}