diff --git a/server.js b/server.js index 73a0b8a..cbada05 100644 --- a/server.js +++ b/server.js @@ -2406,7 +2406,7 @@ const server = http.createServer(async (req, res) => { const t = nameTok.toLowerCase(); let a = await accounts.byCode(t); if (!a) a = await accounts.byUsername(t); if (!a && /^\d+$/.test(nameTok)) a = await accounts.byMemberId(Number(nameTok)); - if (a) { name = a.username ? '@' + a.username : (a.memberId ? 'member #' + a.memberId : null); avatarUrl = a.avatarUrl || null; own = !!(acct && a.email === acct.email); var bio = null, cobrand = false; try { cobrand = (await ads.milestonesOf(a.email)).includes('level3'); if (cobrand && !a.profileQuarantined && await hasBought(a)) bio = a.bio ? String(a.bio).slice(0, 220) : null; } catch (e) {} } + if (a) { name = a.username ? '@' + a.username : (a.memberId ? 'member #' + a.memberId : null); avatarUrl = a.avatarUrl || null; own = !!(acct && a.email === acct.email); var bio = null, cobrand = false; try { cobrand = (await ads.milestonesOf(a.email)).includes('level3'); if (cobrand && await hasBought(a)) bio = a.bio ? String(a.bio).slice(0, 220) : null; } catch (e) {} } } // "You're joining the line of X" must only greet someone who is actually about to // join. The last-touch sponsor cookie lives 30 days, so an EXISTING member who once @@ -4809,7 +4809,7 @@ const server = http.createServer(async (req, res) => { } const joinPath = '/join/' + (a.username || a.code); // profile fields (bio, avatar, socials, intro video) only for a paying member; a free account's wall carries the name, the line's ads and the join call (2026-10-30) - const bought = (await hasBought(a)) && !a.profileQuarantined; + const bought = await hasBought(a); // a purchase lifts the quarantine too: the notice promised the links after the first package let socials = null; if (bought) { try { socials = a.socials ? JSON.parse(a.socials) : null; } catch (e) {} } return json(res, 200, { name: a.username ? '@' + a.username : 'member #' + (a.memberId || 0), bought, avatarUrl: bought ? (a.avatarUrl || null) : null, bio: bought ? (a.bio || null) : null, socials, badge, @@ -5831,7 +5831,7 @@ const server = http.createServer(async (req, res) => { if (a) { const nm = a.username ? '@' + a.username : 'member #' + (a.memberId || 0); const esc = t => String(t || '').replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); - const bought = (await hasBought(a)) && !a.profileQuarantined; // only a paying member's avatar becomes the share image + const bought = await hasBought(a); // only a paying member's avatar becomes the share image const title = nm + '\u2019s ad wall | InstantAdPay'; const desc = esc(wallDescription(nm)); // fixed site sentence, never the bio (indexed snippet stays ours) const img = bought && a.avatarUrl && /^https:/.test(a.avatarUrl) ? a.avatarUrl : 'https://instantadpay.com/banners/iap-hero-1200x630.png';