Way back in the day, “ping servers [1]” were popular and I added support for it to mod_blog [2], only to remove it a few years later when the one I was using (the most well known one—I think it was weblogs.com but it's been over fifteen years or so) stopped working. I then removed the support from mod_blog because I didn't feel it was worth keeping a feeature around I didn't use.
Then about a week or so ago, a similar service just started up for Gemini [3] based blogs, and given that I serve up my blog via Gemini [4] I figured I could support that feature again. But as I started, I had an idea—instead of hardcoding support for Antenna [5] in mod_blog, why not support the idea of a “hook” (like git [6])? It would be easier to write a script to update Antenna (since I already support TLS (Transport Layer Security) [7] and Gemini URLs [8] in Lua [9]) than to try to do that all in C.
It wasn't that hard. One function to execute a script [10] and some judicious calls [11] to said function [12] and I have a way to notify external services of new updates.
I wish I had thought of this concept back then. It would have saved me the trouble of adding, and later, removing, code to support various notification sites as they came and went.
Ah well … live and learn.
[1] https://en.wikipedia.org/wiki/Ping_(blogging)
[2] https://github.com/spc476/mod_blog
[3] https://gemini.circumlunar.space/
[5] gemini://warmedal.se/~antenna/
[7] https://github.com/spc476/lua-conmanorg/blob/master/src/tls.c
[8] https://github.com/spc476/LPeg-Parsers/blob/master/url.lua
[10] https://github.com/spc476/mod_blog/blob/master/src/hooks.c