diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/users.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/routes/users.ts b/routes/users.ts index 128a2b72..e6f7f625 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -989,7 +989,12 @@ export default { if (app && uid !== app.uid) fail("Unauthorized"); if (secret) pubkey = getPublicKey(hexToBytes(secret)); - notify = String(notify) === "true"; + // Default notifications ON. The info event advertises payment_received/ + // payment_sent, but notify previously defaulted to false unless the client + // sent notify:"true" — which most don't — so the advertised notifications + // never fired (only ~1% of apps had it on). Only disable when explicitly + // set to "false". + notify = String(notify) !== "false"; app = { ...app, |
