aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lnurl.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/lnurl.js')
-rw-r--r--routes/lnurl.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 79bac995..81a74991 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -78,6 +78,7 @@ export default {
async lnurl({ params: { id }, query: { amount, nostr } }, res) {
let uid = await g(`lnurl:${id}`);
let user = await g(`user:${uid}`);
+ if (!user) user = await migrate(uid);
let { username } = user;
username = username.replace(/\s/g, "").toLowerCase();