#dev 2020-06-25

2020-06-25 UTC
#
jacky
oh boy okay
#
jacky
so I'm back in the "how do I handle responses to a Webmention" hell again
#
gRegorLove
responses to a webmention?
#
gRegorLove
like replies to replies?
[tantek] joined the channel
#
jacky
nahh like the difference between a 201 and 202
geoffo, [tw2113] and KartikPrabhu joined the channel
#
jacky
lol yeah
#
jacky
I need to write down my understanding of it
#
jacky
and then link it somewhere so I don't do this re-ack'ing
KartikPrabhu, wombelix and beko joined the channel
#
[tantek]
finally changed some code on my site today to fix a minor RSVP bug on 2020.indieweb.org! since that site uses author URL on an indie RSVP to correlate with (and de-dupe) from a tito RSVP, I discovered my author icon markup had neglected to keep up with the parser fixes we'd made so (I was depending on implied u-url).
#
[tantek]
so I made it explicit, updated my site, used webmention.app to resend the webmentions, and 2002.indieweb.org/west now shows only one RSVP for me (in the Indie RSVPs section)!
[schmarty], gxt_, justache, [chrisaldrich], gRegorLove_, [fluffy], [tw2113], KartikPrabhu, gbmor, [KevinMarks], dansup_, cjw6k, vasilakisfil, JK_na, moppy, dckc and [Ana_Rodrigues] joined the channel
#
petermolnar
re [Ana_Rodrigues] (moving here from -chat): I also use a static site with webmention.io . The way I do it is the following: every entry has it's own directory, within that directory comments are their own markdown + yaml frontmatter entries. Before I query webmention.io, I try to locate the youngest of these, and pass the "since" to webmention.io. The parse if there's anything incoming, and save it to the relevant location.
#
petermolnar
This is before running the site generator itself. I believe the process could be adopted to 11ty.
[jgmac1106] joined the channel
#
[jgmac1106]
I cheat and just use fluffy's stuff...did mean I had to break down and some javascript....but it is easiest way to add webmentions to your site
#
[jgmac1106]
only negligible nonissue is losing my bragging rights for a 100 lighthouse score....95 or 96 now.
KartikPrabhu joined the channel
[KevinMarks] and [LewisCowles] joined the channel
#
[LewisCowles]
!tell jacky
#
[LewisCowles]
> "how do I handle responses to a Webmention"
#
[LewisCowles]
Ignore them? 😉
hs0ucy, [jgmac1106], [itsjustk], [Murray], flex14, [Ana_Rodrigues], [schmarty] and [tw2113] joined the channel
#
[Ana_Rodrigues]
Thanks for sharing [petermolnar_] ! I’m not too concerned about the implementation, I think I will do something like in here https://mxb.dev/blog/using-webmentions-on-static-sites/ but I haven’t made up my mind on how to display them. I will keep an eye on the schedule for west coast and timezone permitting, I might join : )
#
[Ana_Rodrigues]
Also, yesterday we had someone attending HWC that is living my 11ty/IndieWeb dream so I will probably have a look at their implementation too 😄
#
sivy_
good am
#
sivy
I’m reading up some more on post-type-detection and several types just require a “valid url”, which appears to be harder to define than I hoped
geoffo and [snarfed] joined the channel
#
[snarfed]
sivy maybe just ignore that?
#
[snarfed]
ie, if someone puts in an in-reply-to of 'foo', and you interpret that post as a reply, even though it's not a valid URL...does anything break? is that maybe ok?
[tantek] joined the channel
#
[snarfed]
or if you do really want url validation, simpler may be ok, ie does it start with http:// or https://
[manton] joined the channel
#
[schmarty]
tantek: regarding making my IWC West 2020 RSVP post a multi-RSVP: sort of! i should be able to add another in-reply-to to my original post. i'm hesitant to do so because my site doesn't dedupe, so my RSVP post will show summaries for both event URLs and my front page will show them as two events.
#
Loqi
The Perfect URL Regular Expression
#
sivy
yeah, i’m not that worried, just ran into it because making Go’s url.Parse error is suprisingly hard
#
sivy
ie, return an error
#
[tantek]
[schmarty] interesting challenge! I suppose if I displayed an automatic summary list of all the events I RSVPd to, I would have that that problem!
#
Loqi
[[schmarty]] and i get my reply context info from x-ray and prefer the url in the parsed mf2
#
[tantek]
I think a reply-context should prefer your in-reply-to URLs directly (following redirects)
#
[schmarty]
tantek: i probably should not trust the parsed MF2 over the (canonical-after-redirects) URL that I actually replied to, agreed. however, the eat-your-own-cooking event listed the main IWC West 2020 event URL as its u-url, which i think is not correct.
#
[schmarty]
a fun little combo
#
[tantek]
a good test case!
#
[tantek]
jacky and I were just talking reply-context details again last night, reminded me of our conversations at IWS 2019
#
[schmarty]
haha oops that reminds me i still have that proof-of-concept fork of quill that allows editing reply context with contenteditable that i have done nothing further with 😅
#
[tantek]
this detail (trusting you own in-reply-to URLs with redirects over any u-url parsed from the destinations) is probably worth noting in a how-to on /reply-context
#
[tantek]
oh and that too! Readers should allow manual trimming of reply-contexts!
#
[snarfed]
careful though, we still do want people to use u-urls, even if they don't necessarily "trust" them
#
[snarfed]
eg this is how bridgy wms are at least somewhat transparent and Just Work, since the u-urls point to the silo responses
#
[tantek]
trust yourself more than someone else's data 🙂
#
[snarfed]
right, it's just nuanced, not black and white
#
[snarfed]
eg aaronpk does this for bridgy wms
#
[tantek]
snarfed, it's a matter of priorities
#
[tantek]
in the case of received wms, none of the data is "yours" per se
#
[tantek]
whereas a reply-context is generated from a URL that you as the author chose
#
[snarfed]
right, sorry, i am indeed conflating different questions
#
[snarfed]
just wanted to make sure "don't trust u-url" here was nuanced and not indiscriminate
#
[tantek]
pretty sure none of us said that literally?
#
aaronpk
fwiw mine isn't special casing bridgy, it shows that when the u-url domain doesn't match the webmention source domain
#
[snarfed]
yes! definitely happy for nothing to special case bridgy
dckc and KartikPrabhu joined the channel
#
aaronpk
I was wondering why [schmarty]'s rsvp linked to the wrong event
#
sivy
hm, been poking around the microformats/tests repo, is there a set of tests/samples for post-type-detection?
#
petermolnar
but I'm unaware of tests
#
aaronpk
There's probably some in XRay but maybe not well organized
#
sivy
ok
[grantcodes] joined the channel
#
[grantcodes]
Not tests, but http://examples.tpxl.io/ is a more basic list of examples
gRegorLove_, [jgmac1106], [KevinMarks], [schmarty], [tantek], vasilakisfil and [chrisaldrich] joined the channel
#
sivy
[snarfed] - super helpful repo, thanks
#
sivy
and examples
[fluffy] and hs0ucy joined the channel
#
aaronpk
whoa they have .aws
#
sknebel
What is SSE?
#
Loqi
server-sent events is a DOM API for receiving push notifications from a server via HTTP https://indieweb.org/SSE
#
aaronpk
<3 SSE
#
[schmarty]
something (several things) about honeycode strike me as problematic but i think the first is the name?
#
[schmarty]
reminds me of the concept of the "honey-do" list
#
sknebel
huh. I briefly confused it with honeycomb.io :D
#
[KevinMarks]
Yes, I think that's a namespace collision
[tw2113], [grantcodes], hs0ucy and KartikPrabhu joined the channel
#
jacky
whew okay, I wanna post the algo I'm using to resolve webmention 'result' information soon
#
jacky
it's not complex but it makes me notice that there's a few different ways!
#
jacky
there's the 'resolve-from-location-header' method, the 'resolve-from-url-field-in-json' method and there's there "look-buddy-it-was-sent-accept-it" method (lol)
[snarfed] joined the channel
#
[snarfed]
ah yes good old LBIWSAI
[Paulo_Pinto] joined the channel
#
jacky
lmfao
[chrisaldrich] joined the channel
#
jacky
what are async webmentions
[schmarty], [tw2113] and [KevinMarks] joined the channel