Files
nostrlib/nip14/subject.go
2025-04-15 00:00:03 -03:00

13 lines
194 B
Go

package nip14
import "fiatjaf.com/nostr"
func GetSubject(tags nostr.Tags) string {
for _, tag := range tags {
if len(tag) >= 2 && tag[0] == "subject" {
return tag[1]
}
}
return ""
}