Schedule posts to Bluesky with Cloudflare workers. skyscheduler.work
cf tool bsky-tool cloudflare bluesky schedule bsky service social-media cloudflare-workers

Fix mismatched terms

+3 -3
+1 -1
assets/js/appHelper.js
··· 65 65 }); 66 66 67 67 document.addEventListener("postDeleted", function(ev) { 68 - const type = ev.detail.value ? "Repost" : "Post"; 68 + const type = ev.detail.value ? "Retweet" : "Post"; 69 69 pushToast(`${type} deleted`, true); 70 70 }); 71 71
+1 -1
src/endpoints/post.tsx
··· 82 82 if (!response.ok) { 83 83 return c.json({ok: false, msg: response.msg}, 400); 84 84 } 85 - return c.json({ ok: true, msg: "Repost scheduled successfully!", id: response.postId}); 85 + return c.json({ ok: true, msg: "Retweet scheduled successfully!", id: response.postId}); 86 86 }); 87 87 88 88 // Get all posts
+1 -1
src/layout/buttons/posts.tsx
··· 41 41 42 42 export function DeletePostButton(props: DeletePostProps) { 43 43 const deleteTargetId = `#post-${props.id}`; 44 - const postType = props.isRepost ? "repost" : "post"; 44 + const postType = props.isRepost ? "retweet" : "post"; 45 45 const deleteTarget = props.child ? `blockquote:has(${deleteTargetId})` : deleteTargetId; 46 46 return (<button type="submit" hx-delete={`/post/delete/${props.id}`} 47 47 hx-confirm={`Are you sure you want to delete this ${postType}?`}