nip34: allow multiple entries in web/clone/relays tags.

This commit is contained in:
fiatjaf 2024-02-08 17:38:06 -03:00
parent c362be0e82
commit 7fb0ffca6b
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -35,11 +35,11 @@ func ParseRepository(event nostr.Event) Repository {
case "description":
repo.Description = tag[1]
case "web":
repo.Web = append(repo.Web, tag[1])
repo.Web = append(repo.Web, tag[1:]...)
case "clone":
repo.Clone = append(repo.Clone, tag[1])
repo.Clone = append(repo.Clone, tag[1:]...)
case "relays":
repo.Relays = append(repo.Relays, tag[1])
repo.Relays = append(repo.Relays, tag[1:]...)
}
}