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 bcb3f234..5cfb26bb 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -92,6 +92,7 @@ export default {
let uid = await g(`lnurl:${id}`);
let user = await g(`user:${uid}`);
let { username } = user;
+ username = username.replace(/\s/g, '').toLowerCase();
let metadata = JSON.stringify([
["text/plain", `Paying ${username}@${host}`],