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:
martbost
2026-11-05 18:47:54 -06:00
parent f41d1ef384
commit b59b6eb017
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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.' };