Hey @manton Would you be open to the idea of opening up micro.Blog to Yarn.social? 🤔 I understand that micro.Blog uses micro.pub as the underlying protocol for it’s “micro blogging” right?
Hey @manton Would you be open to the idea of opening up micro.Blog to Yarn.social? 🤔 I understand that micro.Blog uses micro.pub as the underlying protocol for it’s “micro blogging” right?
@prologic What kind of integration are you thinking? Micropub for posting, and also Webmention for replies and ActivityPub. Working within one of those APIs is best.
@manton Yarn.social doesn't use ActivityPub for several good reasons. So the integration would have to go the other way. Twtxt (with some extensions) is basically used under the hood. So your micro.Blog service would just need to generate a twtxt.txt feed per user and implement the Extensions (https://dev.twtxt.net)
@prologic Because of how much Micro.blog uses HTML in posts I don’t think it could create a twtxt feed without losing some data. Seems like a better fit for Yarn to support one of the other standards or JSON Feed.
@manton What about the short -- i.e: micro posts before the editor pops open with a title?
AFAIK it's actually Markdown that you support and render to HTML no? Or have I missed how micro.blog works under the hood? 😅
The "social" aspect to micro.blog is what I'm talking about here -- ignore the full blog and publishing side of things.
@manton It might be better if we jumped on a video call at some point so we can hash this out, if you're interested in seeing an integration here? (I am!) 🤞
@sod I read what I could find in plugins for micro.blog but I'm not even sure that a plugin here would work at all. Originally they were designed to customize the Hugo themes and affect the behaviour and look and feel of your blog. Hmmm? 🤔
@prologic Hmmm indeed. 😊 I'm definitely not a Hugo expert, but given that Hugo's RSS support is implemented as a template, I assumed twtxt support could be added in a similar way. But I might be wrong.
@sod I’m not even sure how this wouldn even work. The docs on micro.Blog Plug-ins seems really lacking 😢
@prologic Yeah, I hear you. You're probably better off with the documentation for Hugo, but, even then, the learning curve can be a bit steep if you have no previous experience with Hugo or similar static site generators.
@sod The thing is, it's not a lack of expertise and experience here, it's a missing mental model of how this would work in the first place. If @manton would help fill in the gaps as to how micro.Blog's social (you know the micro blogging) side of things work and how we can hook in to that, that would help a lot. AFAIK this conversation/thread is not being posted on my blog via any Hugo mechanisms. There is a micro.pub API endpoint that micro.blog the Desktop App and Mobile App talk to, I assume the Website does too. It is this that we would want to generate Twtxt feeds out of and integrate micro.blog and yarn.social 👌
@prologic Ah, I see, that makes two of us. 😊 My own sketchy mental model is pieced together by the Micro.blog and Hugo documentation and fragments from @manton's blog. I'm sure it's not 100 % correct.
You can list replies on your blog, but you might have to change a setting for that to work. On the web version of Micro.blog, go to ⚙️ Account and look under the heading Replies. There you can choose to include replies on one of your blogs.
After that, you should be able to fetch replies in your templates like this:
{{ $replies := first 25 (where .Data.Pages.ByDate.Reverse "Type" "reply") }}
Take a look at the Marfa theme for a complete example. You might find Hosted replies helpful as well.