Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
fix: handling of some nostr.json searches
Browse files Browse the repository at this point in the history
  • Loading branch information
piraces committed Jan 26, 2023
1 parent 2c04c81 commit 133dcfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func handleNip05(w http.ResponseWriter, r *http.Request) {

var response []byte
if name != "" && name != "_" && relay.EnableAutoNIP05Registration {
row := relay.db.QueryRow("SELECT publickey FROM feeds WHERE url=$1", name)
row := relay.db.QueryRow("SELECT publickey FROM feeds WHERE url like '%' || $1 || '%'", name)

var entity Entity
err := row.Scan(&entity.PublicKey)
Expand Down

0 comments on commit 133dcfe

Please sign in to comment.