Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto posting to social media #143

Open
rdela opened this issue Mar 1, 2023 · 3 comments
Open

Auto posting to social media #143

rdela opened this issue Mar 1, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@rdela
Copy link

rdela commented Mar 1, 2023

If one wanted to auto post one's new screeds to say, Mastodon, how would one go about that?

I am looking for the equivalent to this in Eleventy land https://github.com/janboddez/share-on-mastodon

@rdela
Copy link
Author

rdela commented Mar 2, 2023

An option: Zapier - RSS to Mastodon https://community.zapier.com/code-webhooks-52/rss-to-mastodon-19131

You have first to create an application on Mastodon in your Developper section, for example

https://mastodon.social/settings/applications

Add the necessary information (url is https://zapier.com), then uncheck all the boxes already checked, and check write:statuses to publish statuses on Mastodon.

Then create the Webhook in your Zap, with:

URL : https://mastodon.social/api/v1/statuses?access_token=XXX : change the .social depending on your Mastodon account. The token is in your Mastodon app
Data : put “status” and add the Post Title / Post Link…

@rdela
Copy link
Author

rdela commented Mar 2, 2023

On Zapier forum link in prev comment:

FYI, this additional article helped me to actually get it working!

https://lukas.io/page:2

better link https://lukas.io/autoposting-rss-to-mastodon

@bennypowers
Copy link

I accomplished this with the webmentions netlify plugin and bridgy

eleventyConfig.addGlobalData('isProductionBuild', process.env.NETLIFY && process.env.CONTEXT === 'production');

Since I'm scanning the feed each time I build, I need to include the mention inside the post content

<div class="e-content">
  <template webc:nokeep @raw="content"></template>
  <a id="tldr"
     webc:if="watch || isProductionBuild"
     href="https://brid.gy/publish/mastodon"></a>
</div>

@zachleat zachleat added the enhancement New feature or request label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants