Commit Graph

12 Commits

Author SHA1 Message Date
deadvey 736edee1b0 fixed some incorrect routes 2026-06-02 00:17:04 +01:00
deadvey 5a14b125d2 changed how data is read from the database and consolodated syndation feeds into just 2 files. 2026-06-01 13:53:58 +01:00
deadvey 9b10188066 fixed inconsistent indenting 2026-05-31 12:38:00 +01:00
deadvey f11b94527d ugghhhh new site_path config option 2026-05-30 20:05:01 +01:00
deadvey 7d38752f34 Changed how comments are stored and how data is retrieved 2025-11-27 11:34:12 +00:00
deadvey 2d33ce79a8 Fixed a bug where comments could be submitted without any content
and where the hitcount was incremented before the program checked if
the post existed
2025-10-24 13:05:31 +01:00
deadvey 87fd97730e Escape potentially dangerous input in the search field 2025-10-01 17:45:31 +01:00
deadvey 521dbccc7e Basic search functionality on the frontpage, I want to add support for
more advanced searches like using boolean operators, but right now it's
pretty basic.
2025-10-01 10:40:36 +01:00
deadvey 8ad8f01043 Added basic search functionality (no frontend for it yet) 2025-09-30 23:15:33 +01:00
deadvey ef7178cc3f Comment submission works
I fixed the comment submission to use the new way of storing comments and their counter.
I also fixed the AI-consent field in en-US because I accidently had · instead of spaces (from when I copy pasted from vim)

Signed-off-by: deadvey <deadvey@deadvey.com>
2025-09-24 17:20:20 +01:00
max e6476dcd4e Everything uses data.getdata()
data.getdata() excepts two parameters, if desired, the second will be the index, however if you don't specify anything, the whole array will be returned
Also, comments now have a composite key of postID-commentID, with each post's comments having their own set starting at 0, this makes it easier to index and find a specific comment, and making the getcomment() function unessesary
2025-09-24 17:06:13 +01:00
max 93c5f13750 Clean up changes
Seperated all routes into seperate files for neatness, and I've made the comments.json store only the comments, comments_counter is in the new data.json file which also stores the hitcount.

Signed-off-by: max <deadvey@localhost.localdomain>
2025-09-24 10:02:28 +01:00