So to explain what I’ve been trying to do:
I’m using the “Share on Mastodon” WordPress plugin to syndicate all my WordPress posts to Mastodon.
This plugin trims and formats my post so that it would fit within the Mastodon word limit. It would also append the permalink to the post.
However, the plugin also appends an ellipse to the end of the Mastodon post (to show it’s been truncated). But since this is added to the end of the post, where my permalink is, it breaks the URL.
So I’ve been trying to customise the way my post is sent to the plugin so my URL wouldn’t break.