From b2fbe7ded434390cc79aaa55193ede66052194be Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Fri, 17 Apr 2026 10:56:23 -0400 Subject: [PATCH] fix(rsocials): postiz sweep skips nodes with any postizStatus set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Earlier version only skipped when postizPostId was set. If a send attempt failed (no postizPostId but postizStatus='failed'), the sweep retried every 60s and hammered Postiz's throttler. Retries now require the user to clear postizStatus — same gate as a fresh node. Co-Authored-By: Claude Opus 4.7 (1M context) --- modules/rsocials/mod.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/rsocials/mod.ts b/modules/rsocials/mod.ts index 6ec5383a..94d7b4cb 100644 --- a/modules/rsocials/mod.ts +++ b/modules/rsocials/mod.ts @@ -944,6 +944,9 @@ async function postizSweep() { if (node.type !== 'post') continue; const d = node.data as PostNodeData; if (d.postizPostId) continue; + // Skip any node that's already been handled by Postiz (queued/published/failed). + // A failed send needs the user to clear postizStatus before we retry. + if (d.postizStatus) continue; if (d.status !== 'scheduled') continue; if (!d.scheduledAt) continue; const ts = new Date(d.scheduledAt).getTime();