apiToken: process.env.PINBOARD_TOKEN,
blogUrl: process.env.BLOG_URL,
archiveUrl: process.env.ARCHIVE_URL,
+ blogPublicUrl: process.env.BLOG_PUBLIC_URL,
+ archivePublicUrl: process.env.ARCHIVE_PUBLIC_URL,
tootToken: process.env.TOOT_TOKEN,
+ mastodonDomain: process.env.MASTODON_DOMAIN,
date: (new Date()).toISOString().split('T')[0],
const body = new FormData();
body.set(
'status',
- `New post: ${title}\n\nAvailable on:\n\nāļø the gemini archive gemini://gemini.unlimited.pizza/gemlog/\n\n or, the ephemeral blog š: https://blog.unlimited.pizza`
+ `New post: ${title}\n\nAvailable on:\n\nāļø the gemini archive ${internals.archivePublicUrl}\n\n or, the ephemeral blog š: ${internals.blogPublicUrl}`
);
- return fetch('https://mastodon.social/api/v1/statuses', {
+ return fetch(`https://${internals.mastodonDomain}/api/v1/statuses`, {
method: 'post',
headers: {
Authorization: `Bearer ${internals.tootToken}`,