mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
nip34: allow multiple entries in web/clone/relays tags.
This commit is contained in:
parent
c362be0e82
commit
7fb0ffca6b
@ -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:]...)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user