Update emails can be intro-only (LinkSpin launch campaign 2026-11-05): send() and the admin card required at least one release note; campaign emails carry only an intro and closing. Now an intro OR a note is enough. admin.js?v=20261105ue
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -550,6 +550,6 @@
|
||||
|
||||
<script src="/assets/common.js?v=20261105po"></script>
|
||||
<script src="/assets/admin-kb.js?v=20261020kb"></script>
|
||||
<script src="/assets/admin.js?v=20261101t"></script><script src="/assets/admin-sponsorcheck.js?v=20261022sc"></script><script src="/assets/admin-refill.js?v=20261024rf"></script><script src="/assets/admin-kits.js?v=20261024kit"></script><script src="/assets/admin-launchweek.js?v=20261105lw"></script>
|
||||
<script src="/assets/admin.js?v=20261105ue"></script><script src="/assets/admin-sponsorcheck.js?v=20261022sc"></script><script src="/assets/admin-refill.js?v=20261024rf"></script><script src="/assets/admin-kits.js?v=20261024kit"></script><script src="/assets/admin-launchweek.js?v=20261105lw"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -514,7 +514,7 @@
|
||||
$('updPreview').addEventListener('click', busy($('updPreview'), async () => { const r = await api('/api/admin/updates/preview', updInput()); $('updPre').hidden = false; $('updPre').textContent = 'Subject: ' + r.subject + '\n\n' + r.text; }));
|
||||
$('updTest').addEventListener('click', busy($('updTest'), async () => { const r = await api('/api/admin/updates/send', Object.assign(updInput(), { test: true })); IAP.status('Test sent to ' + r.to + '.', 'ok'); }));
|
||||
$('updSend').addEventListener('click', busy($('updSend'), async () => {
|
||||
const inp = updInput(); if (!inp.noteIds.length) { IAP.status('Pick at least one note.', 'bad'); return; }
|
||||
const inp = updInput(); if (!inp.noteIds.length && !String(inp.intro || '').trim()) { IAP.status('Write an intro or pick at least one note.', 'bad'); return; }
|
||||
const opt = $('updAudience').selectedOptions[0].textContent;
|
||||
if (!(await IAP.confirmBox('Send this update to ' + opt + '? One email per member, opt-outs skipped.', { title: 'Send member update', ok: 'Send now', cancel: 'Not yet' }))) return;
|
||||
const r = await api('/api/admin/updates/send', inp); IAP.status('Sending to ' + r.total + ' members in the background.', 'ok'); loadUpdates();
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ function compose({ subject, intro, noteIds, closing }, acct) {
|
||||
|
||||
let running = null;
|
||||
async function send(input, opts) {
|
||||
const noteIds = (input.noteIds || []).map(String); if (!noteIds.length) return { error: 'Pick at least one release note.' };
|
||||
const noteIds = (input.noteIds || []).map(String); if (!noteIds.length && !String(input.intro || '').trim()) return { error: 'Write an intro or pick at least one release note.' }; // campaign emails are intro-only (LinkSpin launch, 2026-11-05)
|
||||
if (!R.mailer.hasKey()) return { error: 'The mailer is not configured on this server.' };
|
||||
if (opts && opts.test) {
|
||||
const to = R.adminEmail; if (!to) return { error: 'No admin email configured.' };
|
||||
|
||||
Reference in New Issue
Block a user