#dev 2026-11-28

2026-11-28 UTC
lain`, troojg and barnaby joined the channel
#
vikanezrimaya
aaronpk: well, I kinda have to move domains within the next two months, so I can be a guinea pig once I migrate and until the old domain expires~
#
aaronpk
do you use webmention.io? I could try prototyping it there
grufwub and redshuffle joined the channel
#
GWG
I'm still working on geolocation stuff
#
GWG
I found a new reverse geolocation provider that is lightweight enough for me to host local lookup and then fallback when needed to commercial. And now I am trying to fix some limitations in the data
ax5623, strugee_, JoshuaMorris, k3can819, troojg, barnaby, CrimeWave, JadedBlueEyes15, lecaseus, chish, chish_, DenMcH, [Mike] and Saige_Leah joined the channel
#
[capjamesg]
Does anyone have a jingle for their website? 😄
barnaby, doesnm, mahboubine, Maxpm0, saptaks, vriska, rMdes and ruecharli joined the channel
#
GWG
[capjamesg]: Are you offering to write me one?
#
[capjamesg]
Not quite 😂
#
[capjamesg]
But I do have my standard jingle that nobody has taken me up on yet.
#
GWG
I'm just, in between other things, trying to figure out self-hosting reverse geocoding and venue lookup for my local region. aaronpk's compass update got me thinking about things, and I now have tools that can do the data comparison for me.
#
aaronpk
have you been able to get the new version working?
#
GWG
aaronpk: Yes. I had to blow out the SQL database and rebuild it, but that never quite worked right for me anyway
#
GWG
I never used the queue features
#
GWG
But I was experimenting with traccar-geocoder, which is a lightweight rust service that does reverse geocoding only.
#
GWG
Then the data feeding it had some issues. For example, if you only downloaded a state from geofabrick, it didn't include the country in the return.
#
GWG
So, that led me to do an analysis on simple fixes to the OSM data files I was downloading, and then using that to write a processing script called geogrist that adds administrative boundaries to the files, filters out information the geocoder doesn't use, and regenerates on a scheduled basis
#
GWG
Then added some missing address data in the US as well from a secondary source.
#
GWG
And I just think I figured out how to extract some venues from the OSM data and have a local venue service with fallover if needed to a commercial one.
#
GWG
I feel like having access to tools to do data analysis on large sets quickly is not helping my tendency to obsess about details
[KevinMarks], DenMcH, barnaby, deathcomestotime, [pcarrier_com], redshuffle, rMdes-bnc4, jjuran_, Xe_, mahboubine, nsh-, calciume, oxtyped, hypha, Kaja_, tetov, bb010g, sivoais, srijan, Elleo, vikanezrimaya, luca, Saige_Leah, ben, saptaks, lockywolf, chish, dustinm`, potter, GuestZero, Saphire, pfych, kleb60, pauls, bargaintreeflow, [tantek]4, [tw2113]1, [Al_Abut]1, [capjamesg]1, [social]1, sebsel, JoshuaMorris, rumorsmatrix[d], highstrike300[d], scottthigpen[d], strugee_, aczietlow[d], wet_soil[d], [tantek], IWDiscord, jeremycherfas, [capjamesg], [Al_Abut], girlonthemoon, GWG, chimo, dougbeal[d], den, dshanske[d], [tw2113], [social], topo_97[d], oxtyped_, [aciccarello]1, IWSlackGateway1, [Mike], rMdes-bnc, 042AADW4S, 042AADVG2, [aciccarello], voxpelli, stewalec, IWSlackGateway, 042AADW6K, JadedBlueEyes15, sandra, dabeglavins, daemonspudguy, troojg, rrix, WinnerWind, chish_, CrimeWave, bterry, burgeonlab_, [tantek]5, [social]2, [Al_Abut]2, [capjamesg]2, [aciccarello]2, [KevinMarks]1 and Pixi` joined the channel
#
vikanezrimaya
aaronpk: I *used* webmention.io in the past! lemme check if I can still log in now, which is an obvious prerequisite
#
vikanezrimaya
uuh oops apparently webmention.io doesn't have any client metadata nor h-app markup, so kittybox bailed out, not knowing how to show its identity
#
vikanezrimaya
i guess i should show a fallback interface with a bare client id and a warning (I already do synthetic CIMD for h-app markup so it would slot in nicely) instead of bailing out
#
vikanezrimaya
after all, if something initiates an OAuth2 flow, it's reasonable to expect it might be able to complete it :3
#
aaronpk
ah i think i dropped the old h-app from webmention.io in favor of the new CIMD-style in the latest indieauth spec
#
vikanezrimaya
oh, you did? Then why did Kittybox not find it? let's debug… lemme open the code so I remember what I'm talking about, I haven't touched that part in quite a while
#
vikanezrimaya
I send `Accept: application/json, text/html` on the metadata request, but I always seem to get HTML in return from you
#
vikanezrimaya
and since I get HTTP, I try to fall back on h-app markup, with no success because it's not there. Ergo, either your CIMD is not published at the URL of the Client ID, or I'm missing something
#
vikanezrimaya
s/HTTP/HTML
#
vikanezrimaya
Your current Client ID shows up as `https%3A%2F%2Fwebmention.io%2F`
#
aaronpk
oh, that's a mistake then, it should be https://webmention.io/id
#
vikanezrimaya
It only recognizes `Accept: application/json`; for `application/json, text/html` it shows a weird HTML wrapper around the JSON response…
#
vikanezrimaya
That could also be the source of my bug. Let me try something…
#
vikanezrimaya
it doesn't seem to respect quality values in the Accept header, and `text/html` always takes priority even if `application/json` is the first
#
vikanezrimaya
I believe my metadata fetching is fully compliant with RFC9110's `Accept` semantics, and it matches the spirit of IndieAuth §4.2.1 note: "authorization servers may wish to continue to support [`h-app` markup served from `client_id`] for backwards compatibility"
#
vikanezrimaya
aaronpk: ok your Client ID is actually correct (I didn't notice the `id` after the slash), so it's purely my backwards compatibility measures being messed up by the Accept semantics on your side
#
vikanezrimaya
Well, I *should* be sending a lower quality value for HTML ­— I don't currently do that — but it won't help in this particular case. Let me see how this weird HTML fallback works on your side…
barnabywalters joined the channel
#
vikanezrimaya
https://github.com/aaronpk/webmention.io/blob/php/src/Http/JsonResponder.php <- `respond()` calls `$request->acceptHtml()` which naively checks for `text/html` in `Accept`! This seems to violate the semantics of the `Accept` header, as I clearly indicate I accept JSON, and since JSON is the canonical response format, shouldn't it be preferred?
#
aaronpk
yeah that seems wrong. i should just drop the content negotiation entirely
#
vikanezrimaya
You could, but then anything that doesn't parse CIMD (i.e. old websites) won't be able to log in
#
aaronpk
well they just won't get the client metadata, which is fine, because the spec used to not even have any metadata discovery ability at all
#
vikanezrimaya
oh, really? that must be a really old version of the spec, because when I got into the IndieWeb, IndieAuth already had metadata discovery from h-app
#
vikanezrimaya
Yes, but I joined circa 2019, where h-app metadata was in vogue
#
aaronpk
looks like html metadata was already there in the 2018 w3c version
#
gRegor
yep, you can still try h-app as a fallback.
#
vikanezrimaya
gRegor: which is exactly what I'm doing, except I wanted to be clever and save myself an HTTP roundtrip by using content negotiation. Standards exist to be used, after all!
Saige_Leah[d] joined the channel