Site invite: kind 'promo' for a site's own ready-made video. The email then reads "Here's a short video that shows how it works" and the subject "<sponsor> sent you a video", never that the sender made it; every other word unchanged (Marty 2026-11-21)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-21 12:45:11 -06:00
parent 7ca7514c42
commit 8ae98be870
3 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ const CANNED = [
a: 'PIF is a gift you send from your own wallet, and the site never touches the money. That is different from other platforms, where the site takes money out of your account balance and buys the position for the other person: InstantAdPay has no balances, so the POL goes straight from your wallet to theirs, and they buy their package themselves, from their own wallet. It only appears on your own free referrals and on members you have adopted, and only once they have linked a wallet, so you cannot PIF somebody who is still sitting in the holding tank. The order is: adopt them from Members > My line > Holding tank, get them to link a wallet on their Wallet tab, then the PIF button shows up, you enter an amount and your own wallet app opens with their address already filled in. Now the part that matters most: do not send anything until you have actually talked to that person and they have told you they will use it. Once that POL leaves your wallet it is gone, there is no refund, no chargeback and nothing we can do to pull it back, because the money goes straight from your wallet to theirs and never touches us. The gift is theirs to keep whatever they do with it, so they can go quiet, spend it on something else, or never sign in again, and none of that is against any rule. Someone in the holding tank joined with nobody working with them and may never have engaged at all, which makes an unanswered PIF the easiest money on this site to lose. Get a reply, get a clear commitment that they are going to buy and build, see that they have linked a wallet and are actually active, and only then decide. If they do buy a $20 package the contract pays you 50 percent as their sponsor and they become one of your qualifying buyers, so a gift that works costs you about half; a gift to somebody who never answers costs you all of it. Never gift money you need, never borrow to do it, and treat every PIF as money you are content to lose.' },
{ id: 'sponsor-video-invite', title: 'An email saying my sponsor made me a video', q: ['I got an email that my sponsor made me a video, is it real?', 'What is Video App Income?', 'How do I stop invite emails from my sponsor?'], tags: ['video app income', 'sponsor invite', 'invite email', 'made you a video'],
re: /(made (me|you) a video|video app income|videoappincome|invite(d)? (email|from my sponsor)|email from my sponsor)/i,
a: 'That email is real if it names your sponsor. Video App Income is another site in the network that makes short promo videos from a phone. A sponsor there can send each of their own direct referrals one invite, once, and it is delivered by InstantAdPay so it comes from an address you already know. It shows a video your sponsor made and says plainly that they earn a share if you buy credits there. Your first video there is free, nothing is promised, and you do not have to join. Your email address was not given to your sponsor or to Video App Income: InstantAdPay sent the note on their behalf. Each person gets this invite one time only. To stop all InstantAdPay emails except sign-in codes and receipts, use the Stop these emails link at the bottom of the message. Separately: if you asked Video App Income to confirm your email, the 6-digit code arrives in an email that says it was sent by InstantAdPay, because InstantAdPay is the mail service for the network. That is expected. Type the code into Video App Income within 15 minutes; if you did not ask for it, ignore it.' },
a: 'That email is real if it names your sponsor. Video App Income is another site in the network that makes short promo videos from a phone. A sponsor there can send each of their own direct referrals one invite, once, and it is delivered by InstantAdPay so it comes from an address you already know. It shows a video your sponsor made, or a short one that shows how the app works, and says plainly that they earn a share if you buy credits there. Your first video there is free, nothing is promised, and you do not have to join. Your email address was not given to your sponsor or to Video App Income: InstantAdPay sent the note on their behalf. Each person gets this invite one time only. To stop all InstantAdPay emails except sign-in codes and receipts, use the Stop these emails link at the bottom of the message. Separately: if you asked Video App Income to confirm your email, the 6-digit code arrives in an email that says it was sent by InstantAdPay, because InstantAdPay is the mail service for the network. That is expected. Type the code into Video App Income within 15 minutes; if you did not ask for it, ignore it.' },
{ id: 'who-invited', title: 'Who invited you? (naming your sponsor)', q: ['How do I add the person who invited me?', 'I joined without a link, can I name my sponsor?', 'What is the Who invited you card?'], tags: ['who invited you', 'invited', 'holding tank', 'no sponsor', 'sponsor link'],
re: /(who invited|invited (me|by)|joined without a (link|sponsor)|forgot (the|my|to use).{0,12}(link|sponsor)|(add|name|set|enter|pick|choose) (my |a )?sponsor|nobody invited)/i,
a: 'If you joined without a sponsor link, your Overview shows a Who invited you? card. Type the username of the person who invited you, confirm it, and they become your sponsor, here and on LinkSpin, and they get a notice. Do it before you switch on payouts or buy, because your sponsor locks on the contract at that point. It has to be a real member: not you, not someone in your own line, and not someone who has not switched on payouts with nobody above them who has (ask them to switch on first). Once you have a sponsor or a member number the card goes away. Nobody invited you? Tap Nobody invited me and stay in the holding tank; a small link on the Overview brings the card back while you are still there. Nothing on the site waits for your answer. New sign-ups cannot be adopted by hand for their first 24 hours, so you have a day to tell us before a member can pick you up.' },
+12
View File
@@ -126,5 +126,17 @@ const send = (items, x) => SI.handle('send', Object.assign({ rid: 'rid-' + Math.
for (let i = 0; i < 4; i++) await SI.handle('code', { site: 'videoappincome', email: 'new.person@mail.test', code: '482913' });
r = await SI.handle('code', { site: 'videoappincome', email: 'new.person@mail.test', code: '482913' }); ok(r.code === 'limit', 'the sixth code to one address in an hour is refused', r);
}
// ---- a ready-made video about the site itself (kind 'promo', Marty 2026-11-21): the email must not say the sender made it ----
{
const own = SI.compose(SI.SITES.videoappincome, 'ann', 'd01', L('d01'), ''), pro = SI.compose(SI.SITES.videoappincome, 'ann', 'd01', L('d01'), '', 'promo');
ok(own.subject === 'ann made you a video' && own.text.includes("Here's one I made: " + L('d01')), 'their own video keeps the approved wording');
ok(pro.subject === 'ann sent you a video' && pro.text.includes("Here's a short video that shows how it works: " + L('d01')) && !/I made|made you/.test(pro.text + pro.subject), 'a ready-made video is never called the sender\'s own');
ok(pro.html.includes('href="' + L('d01') + '"'), 'the link is clickable in the ready-made version');
const strip = t => t.replace("Here's a short video that shows how it works: ", "Here's one I made: ");
ok(strip(pro.text) === own.text, 'every other word of the email is the same');
const n = sent.length, r = await SI.handle('send', { rid: 'rid-promo-000001', site: 'videoappincome', sender: { email: 'bob@mail.test' }, kind: 'promo', items: [{ username: 'carl', link: L('carl') }] });
if (r.ok && r.sent === 1) ok(sent.length === n + 1 && sent[n][1] === 'bob sent you a video' && /shows how it works/.test(sent[n][2]), 'the send call passes the kind through to the email', sent[n] && sent[n][1]);
else ok(false, 'promo send through the full path', r);
}
fs.rmSync(dir, { recursive: true, force: true });
console.log('\n' + passes + ' passed, ' + fails + ' failed'); process.exit(fails ? 1 : 0);
+7 -5
View File
@@ -7,7 +7,7 @@
//
// POST /api/partner/invite/eligible { site, sender: { email?, wallet? } }
// -> { ok, sender: username, directs: [{ username, state: 'ok' | 'sent' | 'no' }], left: { sender, network }, paused }
// POST /api/partner/invite/send { rid, site, sender, items: [{ username, link }], note? }
// POST /api/partner/invite/send { rid, site, sender, items: [{ username, link }], note?, kind? } kind 'promo' = the link is one of the site's own ready-made videos, not one the sender made
// -> { ok, results: [{ username, status: 'sent' | <refusal code> }], sent, left }
// POST /api/partner/invite/code { site, email, code } -> { ok } | { error, code } (2026-11-21)
// the email-check code for the site's network gate: the SITE makes and checks the 6-digit code, this app only mails it
@@ -117,7 +117,9 @@ async function refusal(a, sender) {
async function left(sender) { const c = cfg(), since = dayStart(clock()); return { sender: Math.max(0, c.perSender - await S().count(since, lc(sender.email))), network: Math.max(0, c.perDay - await S().count(since)) }; }
// ---- the email (Marty approved the wording 2026-11-20). Plain text first; the HTML is the same words. ----
function compose(site, sponsor, user, link, note) {
// kind 'promo' (Marty 2026-11-21): the video is one of the site's own ready-made ones, so the email must not say the sender made it.
function compose(site, sponsor, user, link, note, kind) {
const promo = kind === 'promo';
const P = [
'Hi ' + user + ',',
"It's " + sponsor + ', your sponsor on InstantAdPay. I\'ve started using a new app in our network called ' + site.name + ', and I wanted you to hear about it from me.',
@@ -126,13 +128,13 @@ function compose(site, sponsor, user, link, note) {
P.push('It makes short promo videos from your phone. You paste a link to whatever you promote, and about a minute and a half later you have a finished video with a voice, captions and music. No camera, no editing. Each video gets its own page that shows you who opened it and who tapped your button.',
"Your first video is free, so you can see if it's useful before spending anything. After that, videos cost credits, and a $10 pack makes 10 videos.",
"I'll be straight with you: I earn a share if you buy credits. That's how the app works for everyone, and you'd earn the same way from people you bring in. Nothing is promised, and plenty of people will just use it for the videos.",
"Here's one I made: " + link,
(promo ? "Here's a short video that shows how it works: " : "Here's one I made: ") + link,
"You're already on my team, so if you join you'll be placed with me automatically. No link needed.",
sponsor,
"You're getting this because " + sponsor + ' is your sponsor in the Crypto Team Build Network. This is a one-time note sent through the network on their behalf.');
const esc = t => String(t).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
const html = '<div style="font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.55;color:#222;max-width:560px">' + P.map((p, i) => i === P.length - 1 ? '<p style="font-size:12px;color:#888;margin-top:24px">' + esc(p) + '</p>' : '<p>' + esc(p).replace(esc(link), '<a href="' + esc(link) + '">' + esc(link) + '</a>') + '</p>').join('') + '</div>';
return { subject: sponsor + ' made you a video', text: P.join('\n\n'), html };
return { subject: sponsor + (promo ? ' sent you a video' : ' made you a video'), text: P.join('\n\n'), html };
}
function cleanNote(n) {
const note = String(n || '').replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim();
@@ -177,7 +179,7 @@ async function send(b) {
const row = { site: siteId, recipient: lc(a.email), username: a.username, sender: lc(sender.email), senderName: sender.username, link: String(it.link), rid, ts: clock(), status: 'sending' };
if (!(await S().claim(row))) { res.status = 'sent before'; continue; }
try {
const m = compose(site, sender.username, a.username, row.link, cn.note);
const m = compose(site, sender.username, a.username, row.link, cn.note, b.kind === 'promo' ? 'promo' : '');
const okSent = await R.mailer.send(a.email, m.subject, m.text, m.html);
if (okSent === false) { await S().unclaim(siteId, row.recipient); res.status = 'no'; continue; } // unsubscribed between the check and the send
await S().mark(siteId, row.recipient, 'sent'); res.status = 'sent'; sentN++;