tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
291
fork
atom
a tool for shared writing and social publishing
291
fork
atom
overview
issues
28
pulls
pipelines
don't publish to bluesky if share quiet selected
awarm.space
9 months ago
cc2e920c
64852b7e
+9
-8
1 changed file
expand all
collapse all
unified
split
app
[leaflet_id]
publish
PublishPost.tsx
+9
-8
app/[leaflet_id]/publish/PublishPost.tsx
···
63
63
if (!doc) return;
64
64
65
65
let post_url = `https://${props.record?.base_path}/${doc.rkey}`;
66
66
-
let publishedPost = await publishPostToBsky({
67
67
-
text: postContent,
68
68
-
title: props.title,
69
69
-
url: post_url,
70
70
-
description: props.description,
71
71
-
record: doc.record,
72
72
-
rkey: doc.rkey,
73
73
-
});
66
66
+
if (shareOption === "bluesky")
67
67
+
await publishPostToBsky({
68
68
+
text: postContent,
69
69
+
title: props.title,
70
70
+
url: post_url,
71
71
+
description: props.description,
72
72
+
record: doc.record,
73
73
+
rkey: doc.rkey,
74
74
+
});
74
75
setIsLoading(false);
75
76
props.setPublishState({ state: "success", post_url });
76
77
}