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
@@ -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