Daily growth snapshot also posts to the InstantAdPay support topic: the 'support' target has been in snapshotTargets since 2026-09-24 but post() only knew feed and echo (Marty, 2026-11-02); POST /api/admin/snapshot/send takes {target} for a one-off post to one destination

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-02 08:23:40 -06:00
parent 27d7215f0f
commit 4bcc867679
2 changed files with 20 additions and 4 deletions
+2 -1
View File
@@ -5662,7 +5662,8 @@ const server = http.createServer(async (req, res) => {
}
if (p === '/api/admin/snapshot/send' && req.method === 'POST') {
if (!isAdmin(req)) return json(res, 401, { error: 'auth' });
const r = await snapshot.post(); return json(res, r.error ? 400 : 200, r);
let target = ''; try { target = String(((await readBody(req)) || {}).target || '').trim(); } catch (e) {}
const r = target ? await snapshot.postTo(target) : await snapshot.post(); return json(res, r.error ? 400 : 200, r);
}
// -- 1,000-member drop: view, mode (off|dry|armed via site config), snapshot now, pay now, resend the missed-it notices, reset (only before any payment)
if (p === '/api/admin/milestone') {