gmlgcd public release

... starting with v1.3

Initial writeup: 2024-09-02

So, following my last post

/gmlgcd.gmi

one person actually commented! Wow! There is sentient life out there in geminispace! It kind of made my day. What did not make my day was that they immediately found a bug (lol). It was related to the fact that you can supply your own username while commenting, by prefixing your input string with something, seperated by a colon:

harold: I have very important things to say

Turns out, that was broken, since I was only looking for that colon, regardless of any context. Now, it is required that this colon is followed by a single space, for it to act as a username. This fixes the emoji-problem, where any message like:

Please :D

would be treated like >> 'Please ' writes: 'D' <<. To counteract the problem that any ": " would cause the left part to be considered a username, this prefix is given a maximum length, after which gmlgcd will stop looking for a username.

Anyway, the only reliable identification for any user is their certificate's hash, displayed in the comment header.

The software is available on GitHub:

https://github.com/Sir-Photch/gmlgcd

under AGPL-3.0-or-later. I chose that copyleft license since in my opinion, there shouldn't be any motivation on geminispace to utilize software in a non-copyleft manner. Please respect this license!

Feel free to post any issues with or suggestions regarding gmlgcd in the github issue tracker, or in the comments to any post on this gemlog relating to gmlgcd.

Cheers!

View comments

Home