#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!
# [schmarty] the app thought the dev site URL was the canonical one. the login issue should be fixed.
# [schmarty] https://🕸.ws/ yes
# [schmarty] https://xn--sr8hvo.ws/ if we must
# [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?
# [schmarty] hahaha, ok.
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 😅
# [schmarty] yay sign-in! thanks for finding that little goof-up. gRegor++
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.
gerben and IWSlackGateway joined the channel
# IWDiscordRelay <capjamesg#4492> vladimyr will review today!
# IWDiscordRelay <capjamesg#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
[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
# vladimyr https://ttm.sh/Wxp.jpeg
# 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 Check out how masto/fedifeed does it https://git.froth.zone/sam/fedifeed/src/branch/master/lib/convert.js
# 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
# vladimyr https://ttm.sh/Wxj.jpeg
# Loqi [preview] [jamesecradockjr] Cat picture. https://cdn.masto.host/indiewebsocial/media_attachments/files/110/406/353/782/149/126/original/6a28111ea75620a7.jpg
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)
# vladimyr https://devdocs.io/express/index#req.is
# 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)
# vladimyr capjamesg: Just did, I also sometimes type blindly due to wonders of matrix bridge -.-'
[tantek] joined the channel
# vladimyr ^ not supported by pleroma/akkoma
# 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
# vladimyr https://ttm.sh/WxY.jpeg
[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)
# [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
geoffo and [aciccarello] joined the channel
# [aciccarello] I've been thinking about js utils for microformats. I'm not sure what would be best
# [schmarty] gRegor++ thanks so much for taking a look!! i was grateful to find that this library exists! indieweb-php++
geoffo, bterry and gRegor joined the channel