From 38366e0beb116c079d3f8e003c39b24d06dbfb7d Mon Sep 17 00:00:00 2001 From: martbost Date: Thu, 10 Sep 2026 10:42:16 -0500 Subject: [PATCH] Credits: Welcome label shows only the welcome amount; login ads explain they spend purchased credits only Co-Authored-By: Claude Fable 5.1 --- ads.js | Bin 70532 -> 70846 bytes public/assets/my.js | 4 ++-- public/my.html | 2 +- server.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ads.js b/ads.js index 8d14ecb4fd30fac8398649a5972bd1ecc0e138c3..4653de4a16d76297b803e6c65f2a9f5b221b8a0c 100644 GIT binary patch delta 282 zcmYj~y-EW?6os2~w&`pR7Fk0!Tcr@frm(iN5X+mHyPFH^%rbvu3Bkq(5b_XWC)i6~ z#CLI$LQ)+L=jVI-82x;XzV42TF!YSNu2FQh6;og`L8?@>j=JT56)2H(Q|zFu@d2z* zA9lajS4&8P+iX`jyx)vpA5L?S_V7I$jXpZHA - + diff --git a/server.js b/server.js index 7f92729..faa5bde 100644 --- a/server.js +++ b/server.js @@ -804,7 +804,7 @@ const server = http.createServer(async (req, res) => { // line banner exists; members with no tour to walk get them instantly const welcomed = await ads.welcomeGranted(out.email); const tour = welcomed ? [] : (await uplineSlides(out.email)).filter(a => a.lineTargetUrl); - if (welcomed || !tour.length) out.welcomeCredits = await ads.grantWelcome(out.email); + if (welcomed || !tour.length) { await ads.grantWelcome(out.email); out.welcomeCredits = ads.rates().welcomeCredits || 0; } // the welcome amount itself; the rest of the earned pool is viewing rewards, milestones and credits we add else { out.welcomeCredits = 0; out.gauntletPending = true; } } if (out.email) out.inboxUnread = await ads.unreadCount(out.email); // delivers pending solos too