a tool for shared writing and social publishing
Something went wrong. Try again.
don't trigger newsletter sends on firehose update events (#302) master
The firehose UPDATE path was also running the newsletter claim/send logic. Combined with the fact that the idempotency row in publication_post_sends is only inserted when newsletters are enabled at upsert time, this meant that editing an old post after newsletters were turned on for the publication would mail the post out to subscribers retroactively. Gate the newsletter block on event_type === "create" so only firehose creates can fire sends. Metadata sync (indexed flag, bsky like counts, bridgy deletion) still runs on updates as before. Co-authored-by: Claude <noreply@anthropic.com>
Author Jared Pereira Co-author Claude Committer GitHub Date (May 19, 2026, 10:27 PM UTC) Commit 3e9583ca 3e9583ca44883a77a09f220ff526c12f12a0f342 Parent 21cab2c2 21cab2c23e6d3bb91ed7f566f06e2be040a51b5d