In-progress browser for a directory of text files

more conflict-resistant comment storage

Until now, comments were stored in filenames with an incrementing counter. As a result, conflicts are easy; two people commenting on a post around the same time would create the same filename. Then they'd run into conflicts when merging.

Now comment filenames include a random slug.

A secondary consideration is filtering out comments from the file-picker screen. It's only intended for top-level posts. I had a hacky way to do this. My ideal approach would be a directory per post, but Lua+LÖVE doesn't have a portable way to create directories.

Now you now have to manually create a single directory called comments/ in the directory of articles before using pothi.love.

Created by  Kartik K. Agaram  on July 16, 2023
TQ3N2E6PWHTSCYJ2P7Z73THPSKNPS7UD2XS3NDCF6D7VRMLQ7Q4AC
Change contents