Commit Graph

13 Commits

Author SHA1 Message Date
1ecc223433 small changes
Signed-off-by: deadvey <deadvey@deadvey.com>
2025-09-24 20:07:49 +01:00
22a7983737 data.getdata() is fully implemented
I think it all works now...

Signed-off-by: deadvey <deadvey@deadvey.com>
2025-09-24 19:31:32 +01:00
e597fd78f7 Comment replies on comment page
There is now a reply form on the comment pages to reply to that comment
Syntax:
>> postID-commentID

Signed-off-by: deadvey <deadvey@deadvey.com>
2025-09-24 17:33:25 +01:00
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
49c7fc7cdf init.initialise() checks for correct path of config.json (bug fix) 2025-08-09 12:51:43 +01:00
bced9c7c0e CONFIG.md documentation and also fixed a bug where when ATOM files are
loaded the config.rss boolean is actually checked as opposed to
config.atom, fixed by also adding string.atom_disabled to config.json :)
2025-08-02 03:00:20 +01:00
cdfc5f2c30 Post doesn't exist page 2025-08-01 23:21:43 +01:00
b683b658f7 Comments now have their own pages, at /comment/commentID, these are
linked to when someone replies to another comment (>> id), I also fixed
a bug in comment submission where the counter was not incrementing
2025-07-31 03:58:28 +01:00
0c43c7315c editing user redirects to user's page and began to implment ATOM 2025-07-30 00:43:21 +01:00
ff1d34a7ab put package.json in / again 2025-07-23 02:22:13 +01:00
797d894621 lots of fixes and more EJS 2025-07-23 02:20:38 +01:00