Getting Mastodon to show my profile and not navigate to a URL
❤️ 1 Likes
🔄 1 Boosts
This blog is a custom CMS created on val.town (a rather neat function-as-a-service service). I (well an LLM) custom built the mastodon integration and it worked surprisingly well apart from one small thing: whenever you clicked on the link to the actor (`@blog@posthero.us`) then it would just navigate to my home page.
This was frustrating because it's still surprisingly hard to follow people across networks in the Mastodon client, it's triply hard when the service isn't using Mastodon.
After a lot of testing against known working custom ActivityPub site I discovered that the tool I used to build the integration had an attribute called `url` in the Actor profile JSON. Removing this stops Mastodon from navigating to the page and instead will pop open the profile panel in the UI.
Hopefully, if you ever run up against something similar you will know how to fix it.