fix Tag.Relay().

This commit is contained in:
fiatjaf 2022-11-18 14:16:29 -03:00
parent e09f6b4bff
commit 89cb5ad461
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -48,7 +48,7 @@ func (tag Tag) Value() string {
}
func (tag Tag) Relay() string {
if tag[0] == "e" || tag[0] == "p" && len(tag) > 2 {
if (tag[0] == "e" || tag[0] == "p") && len(tag) > 2 {
return tag[2]
}
return ""