144 Commits

Author SHA1 Message Date
Mystikfluu
f7725497eb add logs for when the server is ready 2022-07-24 19:18:32 +02:00
Mystikfluu
9557dd89b1 move all api options to their own file 2022-07-24 19:17:03 +02:00
Mystikfluu
3183ee7eab add debug level output for pid collision 2022-07-24 11:28:21 +02:00
Mystikfluu
2fff81f5b2 add a short cooldown to posting
add a posting_id
2022-07-24 11:25:13 +02:00
Mystikfluu
01524451f6 removed unneeded verbose spammy debug output 2022-07-20 11:01:15 +02:00
Mystikfluu
a706128032 moved some functions out of server 2022-07-20 07:50:48 +02:00
Mystikfluu
59f61112a9 add channel checks to get posts endpoints 2022-07-16 10:27:17 +02:00
Mystikfluu
b3dbb36d88 add channel system for websocket connections 2022-07-16 10:16:47 +02:00
Mystikfluu
aa42afe092 add channel list to posts 2022-07-12 15:04:45 +02:00
Mystikfluu
ed25dffea3 add getChannels api endpoint 2022-07-12 14:49:28 +02:00
Mystikfluu
be159babf0 rename schema 2022-07-11 11:07:47 +02:00
Mystikfluu
61eb7a6ee2 redesigned websocket messages
sends messages in JSON now
posts are more responsive
2022-07-10 16:37:23 +02:00
Mystikfluu
83655ad6d1 add api endpoint to get posts whose ids have to be lower than a given id 2022-07-10 16:17:23 +02:00
Mystikfluu
508e3401a0 added some function documentation 2022-07-07 14:44:08 +02:00
Mystikfluu
ad0d9b1215 add x-xss-protection header 2022-07-03 11:16:55 +02:00
Mystikfluu
30b7d0e7ad getotheruser returns public key 2022-06-24 21:46:50 +02:00
Mystikfluu
7e14d7da8d add length check to post endpoint 2022-06-23 21:11:24 +02:00
Mystikfluu
2666b0b075 add cache to getPost 2022-06-22 20:25:45 +02:00
Mystikfluu
f36b98f0d6 return the single post object on getPost
insstead of an array with the one post object in it
2022-06-22 20:24:10 +02:00
Mystikfluu
a2e0b69791 only send websocket update if the posted message is for everyone 2022-06-22 20:20:25 +02:00
Mystikfluu
dcd1013e38 add getPost api endpoint
for getting a post by its id
2022-06-22 20:16:33 +02:00
Mystikfluu
297d7c6eb0 add auto redirect to https 2022-06-22 09:30:00 +02:00
Mystikfluu
7c38022e0b fix bug when getting avatar 2022-06-22 09:25:48 +02:00
Mystikfluu
29dbd58831 add caching header to avatars 2022-06-22 09:23:12 +02:00
Mystikfluu
35df3913da make getotheruser browser accessible (CORS) 2022-06-21 23:32:26 +02:00
Mystikfluu
285c31d58b add a config for an api endpoint
to decide if `getotheruser` should be allowed to be called without a 
cookie
2022-06-21 23:21:58 +02:00
Mystikfluu
3cf533cc0a add individual url ratelimiting 2022-06-18 18:28:29 +02:00
Mystikfluu
2db1f8ec64 add check for completely invalid reply ids 2022-06-18 12:27:38 +02:00
Mystikfluu
225179b0dc add id-based replies 2022-06-17 23:18:01 +02:00
Mystikfluu
983cd54c2d added limit to getPosts 2022-06-17 22:53:58 +02:00
Mystikfluu
579ea0dd54 add ports to server config 2022-06-17 20:08:03 +02:00
Mystikfluu
03a5803786 add ssl privatekey/certificate to config 2022-06-17 20:00:50 +02:00
Mystikfluu
1e64231556 fix bug where it would log messages multiple times 2022-06-16 18:13:13 +02:00
Mystikfluu
b41d420ce1 add logout button to user page 2022-06-16 16:03:26 +02:00
Mystikfluu
824eb99851 add bot identifier to posts 2022-06-16 13:51:03 +02:00
Mystikfluu
ae538b33af added CORS headers to post endpoint
added messages to websockets
2022-06-15 23:26:18 +02:00
Mystikfluu
3fe83455a3 add key pairs for encryption, as well as better styling for posts page 2022-06-15 00:16:16 +02:00
Mystikfluu
286fe9d74b added limit to search 2022-06-11 19:48:53 +02:00
Mystikfluu
026ad8bca4 fixed crash when trying to set long bio 2022-06-11 19:37:03 +02:00
Mystikfluu
1c5b146827 now unlinks temp files 2022-06-11 15:40:59 +02:00
Mystikfluu
6c239f0e9a added user avatars 2022-06-11 15:36:50 +02:00
Mystikfluu
2a1f82b374 added changeUsername api endpoint 2022-06-11 12:08:20 +02:00
Mystikfluu
8f619fc793 allowing api calls with user+pass instead of cookie 2022-06-10 22:18:45 +02:00
Mystikfluu
0fc8eed5a7 removed unneeded comments 2022-06-10 22:08:22 +02:00
Mystikfluu
bf733806b9 added blocking self-revealing proxies
enabled by default in the config
2022-06-10 20:06:41 +02:00
Mystikfluu
07e36cd2d3 added account-based ratelimiting 2022-06-09 18:58:14 +02:00
Mystikfluu
e5614a0e01 fixed error 2022-06-09 10:34:27 +02:00
none
b41d97985d made logging level optional 2022-06-09 10:05:49 +02:00
none
98845c4454 fixed logging issue 2022-06-09 10:04:58 +02:00
Mystikfluu
3d36086134 even more input validation 2022-06-04 14:09:53 +02:00