Commit Graph

133 Commits

Author SHA1 Message Date
Joe Dowd
16c68dd51d allow removing own segments with a downvote 2020-08-21 22:32:34 +01:00
Ajay Ramachandran
cadf2640fe Add spacing 2020-07-27 19:54:38 -04:00
Joe Dowd
18f5d656de Aded option to proxy submisissions to another server to persist. 2020-07-27 05:51:49 +01:00
Joe-Dowd
5369d48eae Added testing 2020-04-01 21:04:04 +01:00
Joe-Dowd
9bf065e1f0 added request debug log without condition 2020-03-20 20:14:20 +00:00
Joe-Dowd
8543647cbc added youtube util and cors middleware 2020-03-20 20:14:14 +00:00
Joe-Dowd
5c3d18b0e2 Initial refactor (routes and utils to respective folders) 2020-03-20 20:13:55 +00:00
Joe Dowd
5bf86ca7bf Don't allow Infinity to be passed into the database as a sponsor time. 2020-03-18 02:25:37 +00:00
Ajay Ramachandran
dd2a8b682c Added indexes and mmap to the private db 2020-03-04 15:17:50 -05:00
Ajay Ramachandran
d226c52630 Enable memory mapped IO 2020-03-02 17:56:00 -05:00
Ajay Ramachandran
744538eec6 Allow duplicate votes 2020-02-21 18:45:17 -05:00
Ajay Ramachandran
dc4c68903f Made sponsor submission work on POST. 2020-01-28 20:10:47 -05:00
Ajay Ramachandran
8f12cc527b Fixed missing get 2020-01-25 12:07:20 -05:00
Ajay Ramachandran
aad16e2359 API now returns the user count from the download stores. 2020-01-24 22:56:47 -05:00
Ajay Ramachandran
d3998f5d13 Fixed shield user count 2020-01-24 21:56:57 -05:00
Ajay Ramachandran
b5070cf647 Switched to better sqlite 2020-01-24 21:37:16 -05:00
Ajay Ramachandran
938cff5381 Now sets the journal mode to wal 2020-01-23 15:02:55 -05:00
Ajay Ramachandran
ca5890e6e3 Added WAL mode checkpoint number 2020-01-23 15:00:20 -05:00
Ajay Ramachandran
e868fb4c22 Increased VIP power even more. 2019-12-29 21:55:48 -05:00
Ajay Ramachandran
94bb1665a9 Fixed formatting. 2019-12-29 00:22:39 -05:00
Ajay Ramachandran
1d1c30a483 Added post for view counting and vote endpoints. 2019-12-28 23:55:19 -05:00
Ajay Ramachandran
bf56d5c3d7 Prevented crash from thumbnail being missing. 2019-12-28 23:30:10 -05:00
Ajay Ramachandran
befb3f69bd Prevented overdownvoting 2019-12-28 23:25:57 -05:00
Ajay Ramachandran
8f9d991a6c Fixed discord error. 2019-12-28 13:41:13 -05:00
Ajay Ramachandran
20fbb84118 Made it show votes before and after in the discord message. 2019-12-28 11:53:25 -05:00
Ajay Ramachandran
c20649e14a Made the discord notification show votes after vote happened. 2019-12-28 11:49:51 -05:00
Ajay Ramachandran
efc32f8e3a Improved VIP downvote calculation. 2019-12-28 00:48:11 -05:00
Ajay Ramachandran
d5a679731c Removed notification for first time submission if there is a conflict. 2019-12-28 00:41:33 -05:00
Ajay Ramachandran
95ccaf9478 Increased downvote power and VIP downvote power. 2019-12-28 00:38:22 -05:00
Ajay Ramachandran
50bc218ccd Fixed double downvote issue. 2019-12-28 00:36:03 -05:00
Ajay Ramachandran
765755a041 Added first time submission notifications for discord.
Also updated the downvote notification.
2019-12-28 00:29:14 -05:00
Ajay Ramachandran
54455bf625 Made errors respond 502 instead of 409. 2019-12-24 11:05:11 -05:00
Ajay Ramachandran
69f1bff0a1 Made it send a discord message when someone downvotes a sponsor. 2019-12-24 10:53:20 -05:00
Ajay Ramachandran
b65cab0508 Revert "Revert "Revert "Added all db write methods to a queue."""
This reverts commit 379bbee4ab.
2019-12-10 19:54:56 -05:00
Ajay Ramachandran
379bbee4ab Revert "Revert "Added all db write methods to a queue.""
This reverts commit 9cf4a7ed55.
2019-12-10 19:22:35 -05:00
Ajay Ramachandran
691d87d4ff Merged users with the same username for leaderboard purposes. 2019-12-03 17:32:03 -05:00
Ajay Ramachandran
505f2c7385 Fixed getSavedTimeForUser to ignore low voted or shadow hidden submissions. 2019-12-03 17:02:02 -05:00
Ajay Ramachandran
9cf4a7ed55 Revert "Added all db write methods to a queue."
This reverts commit 17f7e618ec.
2019-11-23 01:27:32 -05:00
Ajay Ramachandran
2a25e4a2d9 Removed banned users from total stats. 2019-11-21 13:27:09 -05:00
Ajay Ramachandran
aae0a6f9d4 Removed shadow hidden submissions from stats. 2019-11-15 16:16:42 -05:00
Ajay Ramachandran
17f7e618ec Added all db write methods to a queue.
Should resolve DB busy crash.
2019-10-29 17:29:31 -04:00
Ajay Ramachandran
4b47769f61 Added ability to enable read only mode from the config. 2019-10-28 16:37:08 -04:00
Ajay Ramachandran
e87f804070 Fixed config defined too late 2019-10-27 18:02:12 -04:00
Ajay Ramachandran
7b413dcbb2 Made db paths use the config 2019-10-27 17:57:53 -04:00
Ajay Ramachandran
9cdf0596c0 Changed similar sponsor check to check if equal as well. 2019-10-23 20:15:47 -04:00
Ajay Ramachandran
0404dfd53f Prevented db errors from crashing the server. 2019-10-22 18:18:15 -04:00
Ajay Ramachandran
ffa70d6762 Raised cap to 8 sponsors. 2019-10-20 21:53:36 -04:00
Ajay Ramachandran
a6821209d1 Fixed weighted random cap not working.
Nothing would return if there were more than 4 sponsors.
2019-10-20 21:52:25 -04:00
Ajay Ramachandran
55a56c3e04 Removed log 2019-09-24 18:30:11 -04:00
Ajay Ramachandran
3f55bfea22 Added user based time saved endpoint. 2019-09-24 18:29:06 -04:00