<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mastodon Archives - Cube Websites</title>
	<atom:link href="https://cubewebsites.com/tag/mastodon/feed/" rel="self" type="application/rss+xml" />
	<link>https://cubewebsites.com/tag/mastodon/</link>
	<description>web design and development</description>
	<lastBuildDate>Mon, 02 Jan 2023 16:51:10 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://cubewebsites.com/wp-content/uploads/2019/04/cropped-favicon-32x32.png</url>
	<title>mastodon Archives - Cube Websites</title>
	<link>https://cubewebsites.com/tag/mastodon/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Guide: Using n8n to Send New WordPress Posts to Mastodon</title>
		<link>https://cubewebsites.com/guides/guide-using-n8n-to-send-new-wordpress-posts-to-mastodon/</link>
					<comments>https://cubewebsites.com/guides/guide-using-n8n-to-send-new-wordpress-posts-to-mastodon/#respond</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Mon, 02 Jan 2023 16:43:25 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[directus]]></category>
		<category><![CDATA[mastodon]]></category>
		<category><![CDATA[n8n]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">https://cubewebsites.com/?p=1192</guid>

					<description><![CDATA[<p>Lately I&#8217;ve been interested in using Mastodon as a social media platform. In previous efforts I used the ActivityPub plugin to automatically push new posts to Mastodon, but unfortunately this came with a lot of limitations. I&#8217;ve now setup a new integration which uses some additional tools (Directus and n8n) to help with this process. [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/guides/guide-using-n8n-to-send-new-wordpress-posts-to-mastodon/">Guide: Using n8n to Send New WordPress Posts to Mastodon</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Lately I&#8217;ve been interested in using Mastodon as a social media platform.  In previous efforts I used the ActivityPub plugin to automatically push new posts to Mastodon, but unfortunately this came with a lot of limitations.</p>



<p>I&#8217;ve now setup a new integration which uses some additional tools (Directus and n8n) to help with this process.  The below provides a quick run-through of the process and explanation of this approach.</p>



<h2 class="wp-block-heading">Advantages</h2>



<p>Directus provides a quick way of creating an API around data models.  They offer a free cloud version which is perfect for this small-scale integration.  It can also be self-hosted in a number of ways, including using Docker which makes it very easy to setup.</p>



<p>Note that you don&#8217;t necessarily need Directus &#8211; you could use a database (e.g. MySQL) and replace the n8n API calls with database queries instead.</p>



<p>n8n (nodemation) is a powerful automation tool similar to Zapier or Logic Apps.  You can build workflows to help you achieve complicated processes using simple building blocks.  This also has a Cloud version (paid) or a self-hosted version.</p>



<p>Using the above means that I have far more control over what is going out to Mastodon, and can easily be expand to cover additional platforms e.g. Telegram, Slack or Teams.</p>



<ul class="wp-block-list">
<li>messages can be customised to your liking</li>



<li>messages can be deleted if a post is updated, and you can resubmit</li>



<li>you use your own Mastodon account so your profile can be managed fully</li>
</ul>



<h2 class="wp-block-heading">The Process</h2>



<ol class="wp-block-list">
<li>In Directus create a Collection called &#8216;rss_feed_items&#8217; with a field called &#8216;guid&#8217;.  This is used to track posts which have already been sent to Mastodon to prevent duplicates</li>



<li>In n8n, use a Schedule trigger to run every 5 minutes or so</li>



<li>Use the RSS block to fetch the RSS feed for your WordPress blog</li>



<li>Use the HTTP block to get a list of existing guids from the Directus API</li>



<li>Use the Merge block to keep only new blog posts</li>



<li>Use a Code block to prepare the message for Mastodon i.e. get the title, link and convert the categories to hashtags</li>



<li>Use the Mastodon block to post the message to Mastodon.  This is a third-party block at the moment.</li>



<li>Use the HTTP block to call the Directus API and create a record for the guid of the blog post</li>
</ol>



<p>Using this method, if a blog post is updated, I can just edit my post on Mastodon.  It could actually be made more sophisticated by keeping the Mastodon status ID and Mastodon post content in Directus with the GUID, and then if the new content is different to the old n8n can delete the old post and create a new post for you.</p>



<p>Note that on the first run, it will send all the posts that appear on your current RSS feed to Mastodon. </p>



<p>Enjoy!</p>
<p>The post <a href="https://cubewebsites.com/guides/guide-using-n8n-to-send-new-wordpress-posts-to-mastodon/">Guide: Using n8n to Send New WordPress Posts to Mastodon</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/guides/guide-using-n8n-to-send-new-wordpress-posts-to-mastodon/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To: Add Your WordPress Blog to the Fediverse</title>
		<link>https://cubewebsites.com/guides/how-to-add-your-wordpress-blog-to-the-fediverse/</link>
					<comments>https://cubewebsites.com/guides/how-to-add-your-wordpress-blog-to-the-fediverse/#respond</comments>
		
		<dc:creator><![CDATA[Cube Websites]]></dc:creator>
		<pubDate>Tue, 27 Dec 2022 22:09:51 +0000</pubDate>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[fediverse]]></category>
		<category><![CDATA[mastodon]]></category>
		<guid isPermaLink="false">https://cubewebsites.com/?p=1184</guid>

					<description><![CDATA[<p>This article is based on the already well-written article on Fedi.Tips. The idea is to automatically make all your blog posts on WordPress available on the Fediverse that people can follow on their apps such as Mastodon. Caution: before doing this read the notes below around the downsides to this integration. Doing this is really [&#8230;]</p>
<p>The post <a href="https://cubewebsites.com/guides/how-to-add-your-wordpress-blog-to-the-fediverse/">How To: Add Your WordPress Blog to the Fediverse</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This article is based on the <a href="https://fedi.tips/the-fediverse-beyond-mastodon/" target="_blank" rel="noreferrer noopener nofollow">already well-written article on Fedi.Tips</a>.</p>



<p>The idea is to automatically make all your blog posts on WordPress available on the Fediverse that people can follow on their apps such as Mastodon.</p>



<p><strong>Caution: before doing this read the notes below around the downsides to this integration.</strong></p>



<p>Doing this is really easy&#8230;</p>



<ol class="wp-block-list">
<li>Note that this will only work on self-hosted WordPress installations</li>



<li>Note that there&#8217;s very limited configuration options</li>



<li>Install the ActivityPub for WordPress plugin</li>



<li>Activate it</li>



<li>Done &#8211; on the plugin settings page it will give you the username and URL that can be shared for others to follow.  Any new posts will start to appear to all followers.</li>
</ol>



<p><strong>Quick fix: </strong>when I installed the plugin and went to the Health Checks page, it was showing that my author page was not returning valid JSON with the error:</p>



<pre class="wp-block-code"><code>Your author URL https://cubewebsites.com/author/Cube Websites/ does not return valid JSON for application/activity+json. Please check if your hosting supports alternate Accept headers</code></pre>



<p>The reason for this issue was that the author name format in the URL is from an old version of WordPress.  To fix it all you need to do is:</p>



<ol class="wp-block-list">
<li>Connect to your database using a management tool e.g. phpMyAdmin, TablePlus etc</li>



<li>Go to the users table</li>



<li>Find your user account</li>



<li>Change the user_nicename field to a username/slug format i.e. no spaces, lowercase</li>



<li>Save the changes</li>



<li>You&#8217;ll now see that your author page starts to work and the error message goes away</li>
</ol>



<h2 class="wp-block-heading">Why do this?</h2>



<p>I only set this up to test this feature out.  It&#8217;s quite cool but extremely limited as it creates a Fediverse presence for your site with little to no control.  From what I can tell it registers your site domain as a Fediverse server to give you a unique presence.</p>



<p>The following is all missing:</p>



<ul class="wp-block-list">
<li>option to modify a post once it&#8217;s published</li>



<li>specify hashtags to include (very useful on Mastodon)</li>



<li>personalise your profile directly</li>



<li>receive notifications for any engagement with your content i.e. replies and favourites</li>



<li>changing your Fediverse address</li>
</ul>



<p>The Fediverse address, it&#8217;s always @admin@yourdomain.com which isn&#8217;t a particularly appealing good name in this world of vanity usernames.  For profiles it will pick up your profile picture from the user account, so you can modify that.  Perhaps it picks up additional fields from your WordPress user profile but I haven&#8217;t explored that far.</p>



<p>I made a post that I published without setting the category, so the URL includes the &#8216;uncategorized&#8217; slug.  After fixing this mistake, there was no way to go back and change the automatic post it&#8217;s pushed out on the Fediverse feed.</p>



<h2 class="wp-block-heading">Alternative Approaches</h2>



<ol class="wp-block-list">
<li>An easy option is to create a Fediverse account on an existing Mastodon server.  Then connect your blog to push to this account using the API via a plugin, or via the RSS feed</li>



<li>Setup your own Mastodon server so you can use your own server address instead of a general one, and then use that to push the same way as above</li>



<li>Explore Friendica which seems to have the option of making RSS Feeds into Fediverse accounts</li>
</ol>



<p>My preferred option is Option 1, and perhaps at a later date when I have the time to setup my own server, I would migrate the account to that server.  It provides the most control and personalisation and means you can use the Mastodon app to engage with readers.</p>



<p></p>
<p>The post <a href="https://cubewebsites.com/guides/how-to-add-your-wordpress-blog-to-the-fediverse/">How To: Add Your WordPress Blog to the Fediverse</a> appeared first on <a href="https://cubewebsites.com">Cube Websites</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cubewebsites.com/guides/how-to-add-your-wordpress-blog-to-the-fediverse/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
