#dev 2021-05-04

2021-05-04 UTC
Me and [tantek] joined the channel
#
Ruxton
schmarty: I dunno if its gotten better but there were a lot of timing issues in FF and Chrome 5 or so years ago around the audio tag with subtitles
#
Ruxton
schmarty: this is what I was building http://mirror.rhythmandpoetry.net/song-test/
alex11, KartikPrabhu and petermolnar joined the channel
#
@bnijenhuis
Yesterday I wrote about implementing clientside webmentions to your website. Useful for static websites (I use @eleven_ty).
(twitter.com/_/status/1389528129656565767)
[KevinMarks], __minoru__shirae, shoesNsocks, [arush], KartikPrabhu, [schmarty], [tw2113_Slack_], [aciccarello], astralbijection[ and [chrisaldrich] joined the channel
#
@nhoizey
↩️ I wouldn't recommend doing it client-side, as it puts much more pressure on http://webmention.io, with many requests for the same result instead of one single request per @eleven_ty build. I detailed my idea here last year: https://nicolas-hoizey.com/articles/2020/05/05/jamstack-is-fast-only-if-you-make-it-so/
(twitter.com/_/status/1389630177462915081)
[KevinMarks] joined the channel
[tw2113_Slack_], kitt and [girrodocus] joined the channel
#
@fiinixdesign
Is it possible to comment using webmentions even if you don't have your own website? #indieweb #webmentions
(twitter.com/_/status/1389656219363811330)
minoru_shiraeesh joined the channel
#
@ChrisAldrich
↩️ Try any platform (social or otherwise) that will let you add a public link to the webpage you're responding to, then use a service for sending them manually. Tumblr, WordPress, etc. should work, though may not be pretty. https://indieweb.org/Webmention#Manual_Webmentions
(twitter.com/_/status/1389670903190065160)
[snarfed], [tw2113_Slack_] and [schmarty] joined the channel
#
@bnijenhuis
↩️ I agree that it should be serverside where possible, but the problem is that I manually upload my website. And that won't happen often. To show accurate webmentions, clientside implementation is required here... (1/2)
(twitter.com/_/status/1389677435629805571)
Rattroupe and jjuran joined the channel
#
@bnijenhuis
↩️ I do plan to implement service workers to cache the requests for the user, so that will limit the number of requests. I'll write it up when I've implemented it and will specifically mention the webmentions implementation. (2/2)
(twitter.com/_/status/1389677794305654794)
[chrisaldrich] joined the channel
#
[chrisaldrich]
Dirty rats.... Looks like Tumblr is running all the links on their site through href.li to hide the referrers which means that it is much harder for one's site on it to send webmentions.
[aciccarello] joined the channel
#
[aciccarello]
Why would they want to hide referrers and why couldn't they use `rel="noreferrer"`?
#
[tw2113_Slack_]
THANKS AUTOMATTIC
#
petermolnar
https://github.com/koue/slowcgi/ !!! it it time for a webmentions.bash with nginx?
[KevinMarks] and sparseMatrix joined the channel
#
sparseMatrix
o/
#
sparseMatrix
I'm going to got out on a limb here and claim to have the most basic bits of h-entry working. Is there some sort of validator site?
#
aaronpk
also trying to get a comment to show up on https://webmention.rocks/
#
sparseMatrix
thanks @aaronpk
#
sparseMatrix
I don't have webmention yet, that's next ;)
#
aaronpk
you could send the webmention manually for now
#
sparseMatrix
cool I'm a real hit with indiewebify.me
#
[KevinMarks]
Indiewebify.me will send webmentions too
#
sparseMatrix
I don't yet know how to webnotice them ;D
#
sparseMatrix
I need to do some cosmetic stuff, my css looks like the site is operating under some principal of 'antidesign' lol
#
sparseMatrix
I got a freakin iPad or two, what's the best social reader for iOS?
#
aaronpk
monocle bookmarked as a home page app IMO :D
#
sparseMatrix
monicle is a website?
#
sparseMatrix
monocle
#
sparseMatrix
I'll check that out, thanks :D
#
sparseMatrix
says I need a micropub server like aperture
#
sparseMatrix
wont accept my auth endpoint
#
sparseMatrix
oh well CAN'T RAIN ON MUH PARADE, lol
#
sparseMatrix
getting all that working was a hoot
#
sparseMatrix
Ok y'all, I guess I'm slightly lacking in full comprehension of webmention. How exactly does that work? How does my site know, for instance, if one of y'all has commented on some post?
#
aaronpk
give this a read, i think it's a reasonably summary of the sending direction https://aaronparecki.com/2018/06/30/11/your-first-webmention
#
sparseMatrix
I notice everyone seems to use webmention.io in some form or another. Why a separate service for this one feature?
#
aaronpk
(receiving is a different more complicated story)
#
sparseMatrix
cool I will, thanks @aaronpk :D
#
Loqi
[Aaron Parecki] Sending your First Webmention from Scratch
#
sparseMatrix
so basically, every hentry page on a site supporting webmentions will advertise a webmention endpoint in a rel link in it's header; anynone who wants to get its attention, so to speak, will hi that endpoint with the appropriate payload
#
sparseMatrix
*hit that endpoint
#
aaronpk
yep 👍
#
[snarfed]
[chrisaldrich] some historical background on tublr’s link rewriting/shortening, in case it helps: https://github.com/snarfed/bridgy/issues/609
#
Loqi
[ghost] #609 Tumblr Rewriting URLs
#
[KevinMarks]
Is that something to lobby automattic about now?
#
[snarfed]
not sure. wm discovery is supposed to follow redirects, so it seems like senders should handle wrapped links fine? https://webmention.net/draft/#sender-discovers-receiver-webmention-endpoint
#
[chrisaldrich]
Thanks [snarfed]. The Brid.gy repo was actually one of the first places I turned to for advice and history. I've seen some mentions that WordPress.com sites may use that same URL wrapper (though most seem to be private or semi-private websites).
#
[chrisaldrich]
I've run across one or two JS-related scripts/code that one can put into their Tumblr theme to get rid of these pesky wrappers. Hopefully I'll get some time later to try one or more of them out.
#
[snarfed]
hmm i’m still curious though. are the wrapped links causing a problem? seems like they should still just work
#
[snarfed]
ohhh href.li does meta http-equiv redirect, not HTTP redirect
#
[snarfed]
ugh yeah that’s unfortunate. wm senders generally won’t handle that
#
Loqi
[snarfed] #253 support HTML meta http-equiv=refresh redirects
#
[snarfed]
^ very doable PR, probably just a few lines in https://github.com/snarfed/webutil/blob/master/webmention.py plus a test, happy to help anyone who wants to try!
#
[chrisaldrich]
Since brid.gy bridges all the things, its issues queue is always a wealth of information when some silo-based platform isn't working properly or as expected. [snarfed]++
#
Loqi
[snarfed] has 30 karma in this channel over the last year (62 in all channels)
#
[snarfed]
hah, sadly true
Rattroupe joined the channel
#
Rattroupe
Does anyone know of any work being done on a Rails plugin to implement an authentication endpoint?
#
jacky
none to my knowledge, no
#
jacky
might be a mention on the Wiki
#
jacky
what is a authorization endpoint
#
Loqi
An authorization endpoint is an HTTP endpoint that micropub and IndieAuth clients can use to identify a user or obtain an authorization code (which is then later exchanged for an access token) to be able to post to their website https://indieweb.org/authorization-endpoint
#
Rattroupe
I searched, and there's several solutions if you want to make an IndieAuth client, but noting I could find to make an authorization endpoint
#
jacky
this one mentions providers
#
Loqi
[tonyhburns] indieauth_discovery: Profile and client discovery for Ruby-based IndieAuth clients and providers
#
Rattroupe
What if I don't want to use a provider? I'm building my own website, doesn't it make sense to just have it do its own authentication?
#
[snarfed]
both are ok! up to you
#
Rattroupe
I think it would be nice to have a gem you could include in your Rails site to add authentication but I don't want to step on any toes
#
jacky
it's not terribly difficult to do but I've been writing them up and down in different languages lol
#
jacky
Rattroupe: AFAIK, you'd be contributing if you did something like that :)
#
[snarfed]
definitely always feel free to build your own thing!
#
Rattroupe
ok, I wanted to make sure I'm not going to get angry messages from someone saying "We're already working on this and you're doing it wrong"
#
jacky
oh nah if anything, we'd join forces
#
[snarfed]
heh, we generally won’t/shouldn’t say anything like that
#
jacky
and besides, having options in implementation is a good thing :)
#
[snarfed]
“wrong” is occasionally possible for eg spec compliance, security, etc, but not just because you’re choosing to build something
#
sparseMatrix
@rattroupe I just put my hcard in index.html and stuck it in the root of jamesstallings.code4peeps.life
#
sparseMatrix
no ruby on rails requireed
#
Rattroupe
@sparseMatrix hmm... maybe I'm misunderstanding something.
#
jacky
Rattroupe: you're on the right path
shoesNsocks1 joined the channel
#
sparseMatrix
yeah you should be able to intercept that url and emit html for an hcard and be on your way
#
sparseMatrix
with any programming language worth it's salt ;)
#
jacky
sparseMatrix: I think you're referring to the stuff needed for indielogin.com
#
jacky
that's a bit different from Rattroupe's want to have that kind of logic built into their own site
#
sparseMatrix
jaacky: my understanding is they're the same
#
jacky
not completely
#
Rattroupe
Based on my reading of the indieauth spec... I want to be able to enter my site's URL into an indieauth client. Then that client and my site do the oath token exchange
#
sparseMatrix
authorization endpoint for indieweb
#
sparseMatrix
it's what I use to edit the wiki
#
jacky
yeah but Rattroupe's going down the route of implementing their own endpoint versus using https://indielogin.com, which is different because the MVP for that would be what you mentioned; adding a /h-card to your website
#
jacky
their approach wouldn't involve https://indielogin.com and doesn't require them to add a h-card (although it helps for other things like showing your face in the context of a outgoing Webmention - but that's for later)
#
Rattroupe
yeah I'd be cutting the provider out completely
#
sparseMatrix
ok, but I'm a fumbling newb so I'm not surprised to discover I don't know what I'm talking about now and then ;)
#
jacky
that's totally okay! if anything, we all learned something here
#
sparseMatrix
I still don't understand what he's trying to do I reckon
#
jacky
wonders if there's a way to disambiguate those terms "automatically"
#
jacky
they're implementing the stuff that https://indielogin.com does into their own site
#
sparseMatrix
ahhh
#
sparseMatrix
I don't use that, so I dunno what they do (indielogin
#
sparseMatrix
)
#
sparseMatrix
so, concerning incoming webmentions - the endpoint I advertise for the purpose in my posts... is it xmlrpc, or, ?
#
[KevinMarks]
there is this one in Ruby, but not sure if it is maintained https://github.com/barryf/acquiescence
#
Loqi
[barryf] acquiescence: IndieAuth authorization and token endpoint.
#
jacky
it was updated 18 days ago, according to that repo's commit log
#
Rattroupe
Ah, I didn't see that
#
sparseMatrix
hey, it's even in ruby FTW
#
Rattroupe
It looks like a self-contained minimal app that just implements an auth endpoint
#
Rattroupe
And it's hard-coded to defer the actual authentication to github
#
[KevinMarks]
right, it's not quite what you want, but could be something to build on
#
[snarfed]
sparseMatrix: the webmention endpoint accepts HTTP POSTs
#
Rattroupe
or useful for some implementation details
#
sparseMatrix
Thanks @[snarfed]!
#
sparseMatrix
so there's a couple ways I could approach that
#
sparseMatrix
like, on the server I could listen for endpoint activity
KartikPrabhu joined the channel
#
sparseMatrix
I think I could parse requests for endpoints too
#
Loqi
[superkuh] A static, manual system for *receiving* webmentions (and pingback) with nginx