#dev 2023-05-08
2023-05-08 UTC
KMF, IWSlackGateway and [snarfed] joined the channel
# [snarfed] added bluesky API support to the granary REST API: https://granary.io/?site=bluesky#logins
Soni, IWSlackGateway, geoffo, KMF, Loqi, [chrisbergr], jjuran, holiday_medley and [schmarty] joined the channel
# [schmarty] snarfed++
geoffo and [KevinMarks] joined the channel
# [KevinMarks] [capjamesg] link is erroring again - I wanted to share this info on how to do rich links in bsky: https://bsky.link/?show_thread=t&url=https://staging.bsky.app/profile/gaberivera.bsky.social/post/3juzid54las2q
geoffo joined the channel
# [KevinMarks] also you're not rendering the links in the quoted techmeme post
ShoesNSocks, [tantek], bret, IWSlackGateway, cdravcte, [KevinMarks] and Bayes1 joined the channel
# [KevinMarks] Can you check for an error and renew it?
ShoesNSocks joined the channel
# [KevinMarks] You've got 2 var xhr's one local and one global
# [KevinMarks] I'd suggest using const and let instead of var as var hoisting is weird
# [KevinMarks] you haven't declared refresh anywhere, so it's going to be local to the onreadystatechange functions, so when you try to refresh it will fail.
# [KevinMarks] I'd suggest you catch the refresh failing and do a reauth. Then fix it so the refresh token is actually stored
# [KevinMarks] put use strict; at the top and switch to using const and let to get errors for these kind fo things
# [KevinMarks] you're not checking for errors in your xhr's
# [KevinMarks] might be simpler to switch them to use fetch() then you can use .then and .catch
# [KevinMarks] you have a race in refresh_auth_token too as it's an xhr
# @sergiodxa ↩️ We should have stayed on blogs, and used RSS to follow each other, and used IndieAuth to sign-in using our domains on each other blogs to comment
It’s interesting how social networks are re-inventing what the web could already do in a decentralized way (twitter.com/_/status/1655672112311312400)
# [KevinMarks] so you're calling refresh_auth_token but it async as it calls an xhr
# [KevinMarks] then you make calls that use the `token` global
# [KevinMarks] but `refresh_auth_token` may not have completed yet
# [KevinMarks] so you may be using the old token
# [KevinMarks] another reason to redo the auth using fetch, as then you can await the refresh
# [KevinMarks] I am running this locally, and not hitting breakpoints when I use the form, only when I load a URL
[tantek] joined the channel
# [tantek] evidence of webmention spam in the wild: https://tenforward.social/@eli_oat/110284832577889707
# [KevinMarks] [capjamesg] do you want me to fork it an send PRs or are you actively editing it now?
[capjamesg] joined the channel
# [capjamesg] Feel free to fork it!
# [capjamesg] I’m not working on it right now.
# rubenwardy even with a more traditional commenting system you need moderation to avoid spam
# rubenwardy I suppose you could use captcha to reduce the number of bots
# rubenwardy ooh interesting
# rubenwardy what would you name it to make it appealing to bots
# [KevinMarks] ↩️ Ah, that's because the form is a fake form that uses the iframe which is calling the real site. That's hard to debug
[snarfed] joined the channel
# [snarfed] we supposedly have seen true wm spam, maybe, eg https://indieweb.org/spam#Webmention , but afaik not much
# [tantek] separate person, whole blog post: https://brainbaking.com/post/2023/05/why-i-retired-my-webmention-server/
# [tantek] a little something for everyone, e.g. for the /Gemini fans: "I eventually threw out https://brainbaking.com/post/2021/04/using-hugo-to-launch-a-gemini-capsule/ precisely because of that: yet another thing that needlessly complicates matters."
# [snarfed] "loop etiquette" is now my go-to reply when people push the self hosting purity test too hard: https://www.mnml.nl/phpBB3/viewtopic.php?f=17&t=62658&start=16
# [KevinMarks] I dislike these ejs templates compared to nunjucks tbh
# Loqi A template is a file used to generate a page https://indieweb.org/template
# IWDiscordRelay <capjamesg#4492> Sorry [KevinMarks] 🙃
# IWDiscordRelay <capjamesg#4492> The templates are in need of a refactor.
# IWDiscordRelay <capjamesg#4492> I should probably have a parent template.
# [KevinMarks] your last commit broke the post one
# [KevinMarks] sorry tantek, I'm yakshaving bsky.link at the moment
# [KevinMarks] James, a forEach is usually better than a for loop for templates, then you don't end up with index references everywhere
# IWDiscordRelay <capjamesg#4492> This is useful guidance, Kevin.
# IWDiscordRelay <capjamesg#4492> I haven’t written as much JavaScript as I have other languages.
# [KevinMarks] its the same pattern as iterators in Python - avoiding loop variables in favour of native iterators
# [tantek] my article post was federated pretty well by BridgyFed, except it included an inline link to a Bridgy Fed redirect instead of a direct link to my blogpost: https://mf2.link/mastodon?url=https://xoxo.zone/@tantek.com@tantek.com/110335516349351366
# Loqi [preview] [Tantek Çelik] Running For Re-election in the W3C Advisory Board (AB) Electionhttps://fed.brid.gy/r/https://tantek.com/2023/128/b1/running-for-w3c-advisory-board-ab-election
# [snarfed] [tantek] that's Mastodon, not us. https://fed.brid.gy/docs#which-parts
# [KevinMarks] this refresh code doesn't work - I think it needs the token as a bearer header rather than in the body
# shreyanjain[m] <[tantek]> "a little something for everyone,..." <- this article just pulled me into a rabbit hole that ended with selfhosting xmpp somehow.
# shreyanjain[m] anybody feel free to test my jabber address at shreyan@shreyanjain.net
gxt__ and [jacky] joined the channel