#dev 2023-07-11

2023-07-11 UTC
geoffo joined the channel
#
[snarfed]
mildly indieweb dev related, looks interesting: https://lu.ma/localfirstswunconf-stlouis
strugee and gRegor joined the channel
#
gRegor
awesome epoch++
#
Loqi
epoch has 4 karma in this channel over the last year (6 in all channels)
tei_, [manton], geoffo and btrem joined the channel
#
epoch
is there any activitypub software that does the client-to-server protocol?
#
epoch
looks like pleroma does
#
epoch
(and a couple others)
Loqi and gxt__ joined the channel
#
[0x3b0b]
microblog.pub (as a server) and andstatus (as a client) collaborated on bringing their implementations of it closer to spec, I believe
kirbo_kirbstar joined the channel
tei_ joined the channel
#
[snarfed]
C2S has a bit here and there, but Mastodon API is way more widely adopted, by both implementation and user numbers
tei_1 and btrem joined the channel
#
[tantek]
and Micropub is far more implemented (and adopted AFAIK) than any AP C2S
#
[manton]
I wish there was something we could do to get Micropub more (any?) adoption in the Mastodon dev community. There is also a lot of confusion with e.g. Threads supporting ActivityPub, people thinking you could have third-party client apps. Nope, not really.
#
aaronpk
i think better developer-focused documentation of micropub and indieauth would go a long way
#
aaronpk
similar to the "sending your first webmention from scratch" tutorial I wrote, which is much more digestible than the specs themselves
tei_1 joined the channel
#
capjamesg
What docs would you like to see re: those specs?
#
[tantek]
[manton] I also think there's a feature-gap with Micropub -> proprietary client APIs that we need to close
#
[tantek]
I think you have observed this in the past, with respect to MarsEdit even
#
[tantek]
we need a developer-focused overview of how/why you can use Micropub (+Microsub if your client needs that) and then identify what's missing from that combination that client developers expect
#
aaronpk
yes great point, and there's been some discussions of extensions to solve those features, so we should try to move those along
#
[tantek]
ironically I think AP C2S tried to be that "comprehensive" solution a priori but in practice fell short or had enough other problems that it was largely ignored (by Mastodon etc.)
#
[tantek]
a building blocks approach to a C2S API makes a lot more sense to a much wider variety of clients
#
[tantek]
yes there's a combination of extensions to Micropub (and/or Microsub), and there may be opportunities for new building block "peers" of MIcropub+Microsub
#
aaronpk
right, like some clients only ever want to just post content, like all the twitter bot accounts
#
[tantek]
so for them, Micropub is enough! 🙂
#
[tantek]
but many other clients what e.g. a detailed user profile API, to get / edit etc. so either there needs to be a "how to use Micropub to get/set user profiles" or a new "Microprofile" C2S API that encapsulates all that functionality.
#
[tantek]
want* e.g. a detailed user profile API
#
aaronpk
yep, and it needs to be very clear how small of a subset of everything they need to implement for that, and not feel like they are staring down a giant API rabbit hole just for that use case
#
[tantek]
exactly that. minimal subset. no giant API rabbit holes (which I think was part of why AP C2S was ignored)
#
[tantek]
the key here is it needs to be *real* client developer use-case driven.
#
[tantek]
not "hey I'm a social API expert so I'm going to design all the things!" driven
#
[tantek]
a-ha, there's some hints here at what we need: https://indieweb.org/MarsEdit#IndieWeb_Support
#
[tantek]
might need to rewatch that session to get a more detailed understanding of what [manton] shared about what MarsEdit would need to adopt Micropub
#
[tantek]
capjamesg, since you were not there, curious what you think of the recording of that session
#
[tantek]
^ capjamesg, watch that for the answer to your question "docs would you like to see", and see what you come up with!
#
Loqi
[preview] [PlaidWeb] webmention.js: Client-side library for rendering webmentions from webmention.io
#
[aciccarello]
Link for desnm
gRegor joined the channel
#
shreyanjain[m]
so it turns out bluesky actually allows you to set custom rkeys on your posts etc, sort of allowing you to simulate custom paths
#
shreyanjain[m]
i feel like it would be pretty cool to use that capability to have post urls on bluesky be canonically the same/similar to the ones on your website
#
[snarfed]
wow yeah, I saw that. so much for collection + TID is required?
#
[snarfed]
oh I see, different rkey types, some ^ required, some not. https://atproto.com/specs/record-key
#
sknebel
Regarding indieauth, we should probably go through our existing ecosystem and make sure things are up to date there
#
[tantek]
what is an rkey
#
Loqi
It looks like we don't have a page for "rkey" yet. Would you like to create it? (Or just say "rkey is ____", a sentence describing the term)
#
[tantek]
what is indieauth ecosystem?
#
Loqi
It looks like we don't have a page for "indieauth ecosystem" yet. Would you like to create it? (Or just say "indieauth ecosystem is ____", a sentence describing the term)
eitilt and btrem joined the channel
#
[snarfed]
wow does anyone here run a diaspora pod?
#
aaronpk
Ok but wait I'm more concerned about what else might be affected by this
#
[snarfed]
ImageMagick? yeah
#
[snarfed]
lots. some WordPress, maybe, to start
#
aaronpk
Is it an image magick vulnerability?
tei_ joined the channel
#
[tantek]
quite the gathering of vulns
#
[snarfed]
aaronpk sounds like maybe yes, based on the diaspora description
#
btrem
Anyone know of a good yaml guide? Not so much tutorials -- I've looked at several of those -- more like examples. I'm trying to figure out what might be possible with a recipe ingredient list in yaml.
#
btrem
I'd specifically like to index ingredients like one might index tags on a blog.
#
[tantek]
has anyone done an mf2json to yaml converter? if so, you could go h-recipe -> mf2json -> yaml
#
btrem
I'm going the other way! yaml (frontmatter for posts using 11ty) -> h-recipe.
#
btrem
But I wonder if there's a way to make ingredients into links. It'd be like a recipe book index.
#
btrem
Whenever I consider it, it seems like probably it is not possible without lots of data duplication (e.g., repeating key ingredients in a tags item). But it would be a neat idea to have a DRY automatic index.
#
[tantek]
oh interesting, yaml as content authoring UI -> mf2!
#
btrem
Yes, I'm already doing that part. I decided to do ingredients in my recipe posts in the front matter, using yaml, instead of in the post content. With the idea that maybe I can do more than just output the ingredients in the web page. But so far, that's all I can do with it.
#
btrem
Which is not a disaster. Ingredients in yaml is not much harder than ingredients in markdown.
tei_1 joined the channel
#
[KevinMarks]
YAML is a superset of JSON, so it should work already in theory
#
btrem
What should work in theory? As I said, I'm already converting yaml to microformats. Nothing theoretical about that. :)
#
[KevinMarks]
I was replying to Tantek “has anyone done an mf2json to yaml converter? if so, you could go h-recipe -> mf2json -> yaml”
geoffo joined the channel
#
capjamesg
What do you mean YAML is a superset of JSON?
#
sknebel
That all valid JSON is valid YAML
#
rubenwardy
yeah, means that you can just use json if something requires yaml
#
capjamesg
JSON is valid YAML? Wow.
tei_1 joined the channel
#
rubenwardy
it's generally best practice to just quote everything in YAML to avoid all these foot guns
IWSlackGateway joined the channel
#
[manton]
[snarfed] [aaronpk] That is concerning… Just poking around a little in the commit history, the change seems to be a config file for Imagemagick? See: https://github.com/mastodon/mastodon/commit/987f9099947fdcd71e79d4908cdc4373eca92a85
tei_ joined the channel