#dev 2024-04-20
2024-04-20 UTC
[KevinMarks], [naturestudy] and ttybitnik joined the channel
geoffo, Xe, Maxpm, barnaby, ttybitnik, [tantek], chimo, ttybitni` and [schmarty] joined the channel
# [schmarty] i'm frustrated by it. i don't have a reason to have a squarespace account and they're using the opportunity to make big upsells.
# [schmarty] their DNS support is pretty minimal, so the domain forwarding I had set up on google domains didn't transfer over.
vanitas_gloam joined the channel
# vanitas_gloam with my current attempt at making a webmention endpoint i'm trying to focus on extensibility. making it only do the receiving and validating part, so i can then have something else handle the rest
# vanitas_gloam it's a hack-job but it validates if the source has a in-reply-to, that the source url is the reply's canonical url, and that the author of it is linking to the same host as the source
# vanitas_gloam it writes the reply urls into a file with a little tag of either "ADD" or "DEL" because i want to support deletion of replies too
# vanitas_gloam i think i got a good start going so far. especially since it has been a while since writing that much golang
# vanitas_gloam the validate happens at the moment of receiving. to give feedback for why it failed
# Zegnat Gotcha! I was testing for a while with having a two step. So I would return an error (HTTP 400) immidately when I knew the target domain was wrong (simple and cheap test), but would add the request to a "to be checked" list and return an accepted response (HTTP 202). That way potential spammers have no feedback to know when they got to me or not, and the more expensive check that involves fetching other resources can happen out of
# vanitas_gloam i similarly got the idea that i should write everything for a scale where 1000 requests per second would be no issue. i plan on for now using an allowlist based system where people first ask to be put on there and then send the request
# vanitas_gloam i can prolly figure out something more robust when i work on it for a bit more than an afternoon
# vanitas_gloam for the target validation i just send a head request to it and check for a 200 response
# vanitas_gloam and ofc have it check the host before as well to make sure it's on my site as well
shoesNsocks joined the channel
# vanitas_gloam hmm maybe. i'm still very new to the stuff and prolly spammers won't (at least for now) set up real reply posts to spm so maybe i should just use blocklist instead yea
bterry joined the channel
# jonnybarnes Looking at the redirect url part of indieauth: https://indieauth.spec.indieweb.org/#redirect-url
# jonnybarnes am I interpreting it correctly for native apps, which will have a custom url scheme for their redirect url
# jonnybarnes that the webpage for the app, the url of which will be the client_id, should list redirect urls, and will therefore list in a Link header or <link> tag something like `<link rel="redirect_uri" href="custom-app-scheme://auth">`?
# jonnybarnes thanks
[jeremycherfas], rrix and [Joe_Crawford] joined the channel
Xe joined the channel