#dev 2026-03-16

2026-03-16 UTC
cotsuka, [quarter], Guest4436, psykedelek, ax562, WinnerWi-, WinnerWind, grufwub, sebsel and barnabywalters joined the channel
#
zacharykaiwrites
I have a question, please. I use a system for a captcha on all my forms where to submit the form, people have to type in the title of the post (the h1 at the top) into one of the form fields. However, it seems to work for some people and not others, but it always works for me when I try to test it. Is there something I'm missing or not making clear? Here's an example: https://zacharykai.net/lists/titletrade and
vidak joined the channel
#
aaronpk
Mobile keyboards sometimes add a trailing space, can you trim trailing space before comparing?
#
zacharykaiwrites
That's a good point, thank you! I've double-checked the PHP script I use, and it was trimming trailing space in the form cases, but not on a high-level, so I've added that in. Do you know anything else that might be causing it?
#
[KevinMarks]
you may want to do a case insensitive compare too
cotsuka and sebsel joined the channel
#
zacharykaiwrites
I've added that, thank you! Can't believe I didn't think of it.
lars_the_bear, duanin2, cotsuka, ax562, Pixi and [fluffy] joined the channel
#
[fluffy]
Also make sure people are entering just the text and not `<h1<Title Traders</h1>` or the like. :) Might be worth logging the failed attempts so that you can see what exactly is going wrong.
duanin2, duanin2_, [artlung], cotsuka, gRegor, blacklight, [aciccarello] and lars_the_bear joined the channel
#
[capjamesg]
I am working on a rewrite for my static site generator. I think I can reduce the amount of code it uses by half 👀
[Jo] joined the channel
#
[Jo]
ooo nice
#
[capjamesg]
This will be the third rewrite and every one so far has reduced the codebase by ~50% 😂
[snarfed] joined the channel
#
[snarfed]
[capjamesg]++ "sorry this is so long, I didn't have time to make it shorter" 😎
#
Loqi
[capjamesg] has 39 karma in this channel over the last year (190 in all channels)
#
[capjamesg]
Yes indeed! I think I have understood the problem space better with every successive rewrite.
blacklight and cotsuka joined the channel
#
[artlung]
I alluded the other day to breaking my affirmations bot (bluesky edition) and I fixed it a few days ago. The code I handrolled worked for several months but some aspect of it failed. Rather than debug it I tried this lib https://github.com/williamsdb/php2Bluesky which works great.
#
gRegor
nice!
#
[artlung]
I think I need to set up test bluesky and mastodon accounts to better test robustness. I tend to run live fire tests and delete the failures which emphasizes "it's working, stop changing code!" over "it's working, let's simulate more failures to assure robustness"
#
[artlung]
Once I do that I'm going to revisit my indieweb bots. Likely to look at announcements around events, and maybe some other indieweb writing amplification.
#
[snarfed]
[artlung]++
#
Loqi
[artlung] has 44 karma in this channel over the last year (256 in all channels)
cotsuka, Saige_Leah, Salt and WinnerWi- joined the channel
#
[Michael_Kupiet]
[aaronpk] just to put a bow on it: turns out my 3rd party plugin that was supposed to prevent people from leaving comments via REST isn't working. I just managed to submit a spam comment from the command line myself. That's what was happening. So nothing to do with webmentions at all, just that I happened to enable comments internally at the same time, because the Indieweb webmentions plugin requires it. Fortunately there's ways to
#
[Michael_Kupiet]
close off the traditional comment endpoint entirely before submission, even via REST, so, I'm gonna do that.
barnaby, vriska, cotsuka and ax562 joined the channel
#
[artlung]
The Akismet plugin defends against comment spam for me pretty well.
cotsuka joined the channel
#
aaronpk
[Michael_Kupiet]: glad you were able to track that down. Weird that the plugin just doesnt work!