problem: we were not filtering by author upon receiving a naddr.

fixes https://github.com/fiatjaf/njump/issues/64
This commit is contained in:
fiatjaf
2024-08-06 10:53:55 -03:00
parent b1e8d53a0d
commit f59afbd5b7

View File

@@ -89,6 +89,7 @@ func getEvent(ctx context.Context, code string) (*nostr.Event, []string, error)
}
case nostr.EntityPointer:
author = v.PublicKey
filter.Authors = []string{v.PublicKey}
filter.Tags = nostr.TagMap{
"d": []string{v.Identifier},
}