diff options
| author | Adam Soltys <[email protected]> | 2024-02-23 20:42:36 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-23 20:46:47 -0800 |
| commit | 0af4df3e3dea05063fe392a06772771ea79483a4 (patch) | |
| tree | d8f8c5c1fc651de8f1f8160637e66cfd156aecea | |
| parent | ba392386cb439c634a7a11efbea9f7e3c834954b (diff) | |
| download | coinos-server-0af4df3e3dea05063fe392a06772771ea79483a4.tar.gz coinos-server-0af4df3e3dea05063fe392a06772771ea79483a4.zip | |
hide pay field
| -rw-r--r-- | lib/lightning.js | 3 | ||||
| -rw-r--r-- | lib/whitelist.js | 1 | ||||
| -rw-r--r-- | 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", |
