Skip to content

Commit

Permalink
nip34: allow multiple entries in web/clone/relays tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Feb 8, 2024
1 parent c362be0 commit 7fb0ffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nip34/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]...)
}
}

Expand Down

0 comments on commit 7fb0ffc

Please sign in to comment.