#dev 2023-05-21

2023-05-21 UTC
bret and gRegor joined the channel
#
gRegor
[schmarty], I got "invalid_session The session was missing data. Ensure that you are initializing the session before using this library" when I tried to sign in via https://xn--sr8hvo.ws/. Noticed the domain switch to webring.bayside.pub so guessing that's why. I can sign in on the latter OK.
#
[schmarty]
oop let me make sure i got my configs correct
#
[schmarty]
i did not have my configs correct!
#
gRegor
After I signed in I used "check for updated profile" button since it had an old photo, didn't pick up my new photo and has "You currently have no profile information.
#
gRegor
" IWM finds the representative h-card
#
[schmarty]
the app thought the dev site URL was the canonical one. the login issue should be fixed.
#
gRegor
Ok, so the previous link is still the one to use?
#
gRegor
oops, lost my webring links on the homepage too
#
gRegor
Windows here, typing emojis is hard XD. I just followed the link in your post :)
#
[schmarty]
"oops, lost my webring links on the homepage too" i think that could mean a couple of things.
#
[schmarty]
do you mean the directory?
#
gRegor
Oh, sorry, that was entirely me on my site I mean.
#
[schmarty]
hahaha, ok.
#
Loqi
awesome
#
gRegor
Let me sign in again now and see if it will find my rep h-card
superkuh joined the channel
#
[schmarty]
re:profile finding - hooray! that means something is different between the PHP mf2 parsing ecosystem and the nodeJS one and you might get to help me debug and fix it 😅
#
gRegor
Sign in worked!
#
gRegor
Hooray! happy to help break things, haha
#
[schmarty]
yay sign-in! thanks for finding that little goof-up. gRegor++
#
Loqi
gRegor has 28 karma in this channel over the last year (88 in all channels)
superkuh and cdravcte joined the channel
#
vladimyr
capjamesg: this is what I did so far https://diffy.org/diff/41d2bbf7aa7f5
#
vladimyr
take a look and let me know if you are interested in direction I went with
#
vladimyr
also ignore the formatting, this codebase practically begs for eslint/prettier setup
superkuh and sebbu2 joined the channel
#
[tantek]
some good critiques in here of various "decentralized" approaches (and since that tends to descend quickly into plumbing A vs B, posting here) https://www.wired.com/story/the-hidden-dangers-of-the-decentralized-web/
#
[jeremycherfas]
Looks good @schmarty. I dont have a link on my home page, so it doesn’t find that, but the link on other pages works fine.
#
[tantek]
not sure if rhiaro is still in this channel, rhiaro, if you are, only took 6.5 years for WIRED to write an article like yours 🙂
gerben and IWSlackGateway joined the channel
#
IWDiscordRelay
<c​apjamesg#4492> vladimyr will review today!
#
IWDiscordRelay
<c​apjamesg#4492> I haven’t configured a JS linter in a few years. I’ll look into it!
[KevinMarks] joined the channel
#
[KevinMarks]
That's mainly a critique of web3 bs, not the web.
#
shreyanjain[m]
its behind a paywall for me, anyone have a summary?
#
[KevinMarks]
12ft works on it
#
capjamesg
Does anyone know why a HTML attribute wouldn't be available in a custom component?
#
capjamesg
Now, I can't figure out why a fetch().json() isn't processing.
#
capjamesg
The JSON is valid (I validated it!) but an error is raised.
#
capjamesg
[tantek] I don't think there is an easy way to automatically infer if a site is a Mastodon instance?
#
capjamesg
[schmarty] The mf2.link changes _should_ be fixed.
[chrisbergr] joined the channel
#
[KevinMarks]
Are fragments and ~ still the best way to do linkable pure css tabs, or does the has: selector give a better way?
gRegor and gRegorLove_ joined the channel
#
vladimyr
shreyanjain: as [KevinMarks] said you can use 12ft.io, see it through archive.is and as a special bonus meet your new friend :D
#
vladimyr
No script as a service or as I like to call it no popup as a service :D
#
vladimyr
capjamesg: I can help you with configuring eslint if you like
#
vladimyr
There is a way to determine if site is masto or other fedi sw instance, .well-known/nodeinfo if I'm not mistaken
#
capjamesg
Sure thing!
#
capjamesg
vladimyr Sure!
#
vladimyr
Be aware that you need to factor in fork names (glitch, glitch-soc?) and sometime name field containes other stuff too so it is not simple equals check
#
vladimyr
If I remember correctly it is sort like useragent header in browsers
#
vladimyr
But why would you do it anyway
#
vladimyr
Instead of doing all that dance to determine whether you can talk to server using public masto api
#
vladimyr
Simply ask straight for activity json with appropriate header accept: activity+json and check return content type
#
vladimyr
And you get compatibility with misskey/calckey, friendica and whole swath of others for free
#
vladimyr
e.g. this is how you get post and author info for this cat picture https://indieweb.social/@jamesecradockjr/110406354070182641
gerben joined the channel
#
vladimyr
That's also what aaronpk does in xray
#
vladimyr
Favoring mf2+json if it is available
#
vladimyr
And recognizing returned format from Content-Type response header
#
vladimyr
To parse content-type in node use https://github.com/jshttp/content-type
#
vladimyr
(used by express)
#
Loqi
[preview] [jshttp] content-type: Create and parse HTTP Content-Type header
#
capjamesg
Gotcha.
#
vladimyr
capjamesg: if you have any other questions ask in dm cause I don't want to spam channel with my /beautiful/ curl screenshots 🙃
#
@crafty_av
I got interested in ActivityPub, webmention and other open web standards around 1.5 years ago. Glad to see them now picking up a lot of steam after Twitter acquire and now that Automattic started backing it up with official WordPress compatibility development.
(twitter.com/_/status/1660267273267888128)
#
capjamesg
Sure thing :)
#
capjamesg
Oh, can you message me? My IRC client doesn't show messages I have sent until the recipent sends one back; weird.
#
vladimyr
capjamesg: Just did, I also sometimes type blindly due to wonders of matrix bridge -.-'
[tantek] joined the channel
#
[tantek]
capjamesg, domain/@user works in general with a small number of exceptions
#
vladimyr
^ not supported by pleroma/akkoma
#
[tantek]
right, he asked about Mastodon
#
[tantek]
what URL patterns do pleroma/akkoma use for profiles and permalinks?
#
vladimyr
domain/users/:username
#
vladimyr
which is I believe what mastodon does too after initial domain/@username redirect
#
vladimyr
Actually it is other way around
[schmarty] joined the channel
#
[schmarty]
gRegor: i hadn't realized we had a php representative h-card parser and that it's used by the php indieauth client lib. updated webring to use that and it finds your card info just fine.
jeremycherfas and geoffo joined the channel
#
[schmarty]
aaaaaaaaaaaand i ran into some unexpected things. PRs made and reviews requested for phpunit modernizing (https://github.com/indieweb/representative-h-card-php/pull/2) and allowing `http://example.com` to match `http://example.com/` (https://github.com/indieweb/representative-h-card-php/pull/3)
#
Loqi
[preview] [martymcguire] #2 phpunit 9 compatibility
#
Loqi
[preview] [martymcguire] #4 PHP8+ `parse_url` treats empty vs missing differently for query and fragment
#
[schmarty]
gRegor: another clue for me to think about. http://indiewebify.me uses barnaby's php-mf-cleaner to find representative h cards. https://github.com/barnabywalters/php-mf-cleaner/blob/main/src/functions.php
reesericci and gRegorLove_ joined the channel
#
gRegor
[schmarty], yeah, I've mostly used Barnaby's and suspect it has newer commits -- I remember making some the last couple years. I'll take a look at the rep h-card PR.
#
gRegor
Hm, wait. IBC is using php-indieauth and has been finding my rep h-card
#
gRegor
Oh nevermind, I misread. You weren't using the rep h-card lib and are now. Gotcha.
geoffo and [aciccarello] joined the channel
#
[aciccarello]
I've been thinking about js utils for microformats. I'm not sure what would be best
#
Loqi
indieweb-php has 1 karma over the last year
#
[schmarty]
gRegor++ thanks so much for taking a look!! i was grateful to find that this library exists! indieweb-php++
#
Loqi
gRegor has 29 karma in this channel over the last year (89 in all channels)
#
gRegor
Commented. Broader discussion, but makes me wonder if we could reduce this duplication? Maybe php-mf-cleaner could call in representative-hcard-php for that functionality? Dependency inception, though ("we need to go deeper").
geoffo, bterry and gRegor joined the channel