From 0af4df3e3dea05063fe392a06772771ea79483a4 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 23 Feb 2024 20:42:36 -0800 Subject: hide pay field --- lib/lightning.js | 3 ++- lib/whitelist.js | 1 + routes/users.js | 3 ++- 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", -- cgit v1.2.3