Credits: Welcome label shows only the welcome amount; login ads explain they spend purchased credits only
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user