prologic
prologic

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?

|
Embed
manton
manton

@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.

|
Embed
prologic
prologic

@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)

|
Embed
manton
manton

@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.

|
Embed
prologic
prologic

@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.

|
Embed
prologic
prologic

@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!) 🤞

|
Embed
sod
sod

@prologic If @manton thinks this is out of scope for Micro.blog core, twtxt support could probably be added as a plug-in by a third-party developer.

|
Embed
prologic
prologic

@sod Thanks! I’ll have a read of the plug-in docs 👌

|
Embed
prologic
prologic

@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? 🤔

|
Embed
sod
sod

@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.

|
Embed
prologic
prologic

@sod I’m not even sure how this wouldn even work. The docs on micro.Blog Plug-ins seems really lacking 😢

|
Embed
sod
sod

@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.

|
Embed
prologic
prologic

@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 👌

|
Embed
sod
sod

@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.

|
Embed
prologic
prologic

@sod Ahhhh I see. So the "social" aspect to micro.Blog is provided to Hugo templates via this .Data object that seems to have SQL like methods and attributes. Cool 😎 I guess...

But I don't think this is the right integration point.

@manton Can You/I discuss this somewhere in more detail? 🤔

|
Embed
In reply to
manton
manton

@prologic @sod I still think the right integration point is with existing IndieWeb APIs… Maybe with some handling on the twtxt side to deal with HTML that is outside what a normal text-only post would look like.

|
Embed
prologic
prologic

@manton Are you able to put together a dummy poc so I can see what you’re thinking here? 🤔

|
Embed