mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 13:22:56 +01:00
13 lines
204 B
Go
13 lines
204 B
Go
package nip14
|
|
|
|
import "github.com/nbd-wtf/go-nostr"
|
|
|
|
func GetSubject(tags nostr.Tags) string {
|
|
for _, tag := range tags {
|
|
if len(tag) >= 2 && tag[0] == "subject" {
|
|
return tag[1]
|
|
}
|
|
}
|
|
return ""
|
|
}
|