mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 23:04:21 +01:00
enforce kind when loading naddr with a specified kind.
This commit is contained in:
3
nostr.go
3
nostr.go
@@ -98,6 +98,9 @@ func getEvent(ctx context.Context, code string) (*nostr.Event, error) {
|
||||
filter.Tags = nostr.TagMap{
|
||||
"d": []string{v.Identifier},
|
||||
}
|
||||
if v.Kind != 0 {
|
||||
filter.Kinds = append(filter.Kinds, v.Kind)
|
||||
}
|
||||
relays = append(relays, getRelay())
|
||||
relays = append(relays, getRelay())
|
||||
relays = append(relays, v.Relays...)
|
||||
|
||||
Reference in New Issue
Block a user