mirror of
https://github.com/hzrd149/nsite-gateway.git
synced 2025-06-23 03:55:02 +00:00
Fix returning setup page when event can't be found for pubkey
This commit is contained in:
parent
7fa6a79d3b
commit
1473eee4fd
5
.changeset/shy-shrimps-lose.md
Normal file
5
.changeset/shy-shrimps-lose.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"nsite-gateway": patch
|
||||
---
|
||||
|
||||
Fix returning setup page when event can't be found for pubkey
|
@ -63,7 +63,7 @@ app.use(async (ctx, next) => {
|
||||
app.use(async (ctx, next) => {
|
||||
let pubkey = await resolvePubkeyFromHostname(ctx.hostname);
|
||||
|
||||
let fallthrough = true;
|
||||
let fallthrough = false;
|
||||
if (!pubkey && NSITE_HOMEPAGE && (!PUBLIC_DOMAIN || ctx.hostname === PUBLIC_DOMAIN)) {
|
||||
const parsed = nip19.decode(NSITE_HOMEPAGE);
|
||||
// TODO: use the relays in the nprofile
|
||||
|
Loading…
x
Reference in New Issue
Block a user