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 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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", -- cgit v1.2.3