aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/lightning.js3
-rw-r--r--lib/whitelist.js1
-rw-r--r--routes/users.js3
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/lightning.js b/lib/lightning.js
index 4c2a830b..2d44581d 100644
--- a/lib/lightning.js
+++ b/lib/lightning.js
@@ -34,7 +34,8 @@ export async function listenForLightning() {
try {
if (JSON.parse(description).kind === 9734) await handleZap(inv);
} catch (e) {
- if (!e.message.startsWith("Unexpected")) warn("failed to handle zap", e.message);
+ if (!e.message.startsWith("Unexpected"))
+ warn("failed to handle zap", e.message);
}
}
diff --git a/lib/whitelist.js b/lib/whitelist.js
index e709d53e..52bb466a 100644
--- a/lib/whitelist.js
+++ b/lib/whitelist.js
@@ -16,6 +16,7 @@ export default [
"follows",
"haspin",
"hasprinter",
+ "hidepay",
"id",
"index",
"keys",
diff --git a/routes/users.js b/routes/users.js
index cace4f17..59de22b2 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -107,13 +107,14 @@ export default {
if (!user) return res.code(500).send("User not found");
let whitelist = [
- "address",
+ "address",
"anon",
"banner",
"banner",
"currency",
"display",
"id",
+ "hidepay",
"memoPrompt",
"npub",
"profile",