I moved my M.B. on Sunday to a new custom domain and so far everything works and was moved to the new domain. (Except the ActivityPub thing).
Since the new domain is hosted from Cloudflare and I have enabled rules and things there, the only thing that is not working is the Conversations.js javascript. I get an HTTP 404 error in the browser and don’t know why?
Unfortunately, this will happen for all blog posts published before moving to the new custom domain.
conversation.js fetches the conversation going on over at the Micro.blog timeline for a specific blog post. In this case, the script is saying, "Hey, give me all replies for the blog post at https://www.stratinator.com/2022/01/23/my-sundayswing-ideas.html".
That URL was never sent to the Micro.blog timeline, and that’s the problem. At the time of posting, the URL was https://microblog.renem.net/2022/01/23/my-sundayswing-ideas.html. Hence the 404 Not Found error.
Unfortunately, conversation.js isn’t equipped to handle the domain move. @manton could probably implement support for it, though. Or, if you are comfortable with theme development, you could mitigate the problem yourself there.
Yep, that’s it. When you change your domain name, Micro.blog tries to go back to old URLs in posts and fix them, but it looks like it’s missing some. I think I can update your site to fix this. And long-term, agree with @sod that conversation.js could be improved to find even more posts if the URL doesn’t match.
I stumbled upon this post while trying to understand the 404 error on my blog. I just changed the settings to a custom domain.
I found a workaround that might be useful to someone until a proper fix/update, if you’re comfortable with editing a custom theme. This change depends on your theme, specifically where the line <script type="text/javascript" src="https://micro.blog/conversation.js?url={{ .Permalink }}></script> is added. It should be in a theme file named layouts/post/single.html.