mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-17 19:13:56 +02:00
add nip31, nip52, nip94.
This commit is contained in:
12
nip31/nip31.go
Normal file
12
nip31/nip31.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package nip31
|
||||
|
||||
import "github.com/nbd-wtf/go-nostr"
|
||||
|
||||
func GetAlt(event nostr.Event) string {
|
||||
for _, tag := range event.Tags {
|
||||
if len(tag) >= 2 && tag[0] == "alt" {
|
||||
return tag[1]
|
||||
}
|
||||
}
|
||||
return ""
|
||||
}
|
Reference in New Issue
Block a user