a tool for shared writing and social publishing
0

Configure Feed

Select the types of activity you want to include in your feed.

honor email publish checkbox

Jared Pereira (May 28, 2026, 2:56 PM EDT) 0d52157d 7460c5c2

+4 -1
+3 -1
actions/publishToPublication.ts
··· 61 61 entitiesToDelete, 62 62 publishedAt, 63 63 postPreferences, 64 + sendEmail = true, 64 65 }: { 65 66 root_entity: string; 66 67 publication_uri?: string; ··· 76 77 showMentions?: boolean; 77 78 showRecommends?: boolean; 78 79 } | null; 80 + sendEmail?: boolean; 79 81 }): Promise<PublishResult> { 80 82 let identity = await getIdentityData(); 81 83 if (!identity || !identity.atp_did) { ··· 403 405 // Fire newsletter broadcast on first publish to a newsletter-enabled pub. 404 406 // The composite PK on publication_post_sends is the real idempotency guard — 405 407 // ignoreDuplicates makes re-publishes and concurrent runs a no-op. 406 - if (publication_uri && !existingDocUri) { 408 + if (publication_uri && !existingDocUri && sendEmail) { 407 409 const { data: settings } = await supabaseServerClient 408 410 .from("publication_newsletter_settings") 409 411 .select("enabled")
+1
app/(app)/[leaflet_id]/publish/PublishPost.tsx
··· 157 157 entitiesToDelete: props.entitiesToDelete, 158 158 publishedAt: localPublishedAt?.toISOString() || new Date().toISOString(), 159 159 postPreferences, 160 + sendEmail: shareState.email, 160 161 }); 161 162 162 163 if (!result.success) {