mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-24 07:46:17 +02: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":
|
case "description":
|
||||||
repo.Description = tag[1]
|
repo.Description = tag[1]
|
||||||
case "web":
|
case "web":
|
||||||
repo.Web = append(repo.Web, tag[1])
|
repo.Web = append(repo.Web, tag[1:]...)
|
||||||
case "clone":
|
case "clone":
|
||||||
repo.Clone = append(repo.Clone, tag[1])
|
repo.Clone = append(repo.Clone, tag[1:]...)
|
||||||
case "relays":
|
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