Commit graph

137 commits

Author SHA1 Message Date
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
Ajay Ramachandran
6ae8001b79 Fixed sql schema. 2019-09-16 19:45:39 -04:00
Ajay Ramachandran
70bab877fb Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into experimental 2019-09-16 17:08:00 -04:00
Ajay Ramachandran
d0757ec17b Made shadow hidden submissions count as downvoted submissions. 2019-09-16 17:07:33 -04:00
Ajay Ramachandran
fa58e786d2 Added trustworthy check function and made it possible to get unshadowbanned. 2019-09-16 16:51:55 -04:00
Ajay Ramachandran
ef5c6fddec Changed shadowHidden to 1 instead of true in the new function. 2019-09-11 15:00:35 -04:00
Ajay Ramachandran
1b53b3c993 Made untrustworthy users have hidden submissions. 2019-09-11 14:57:03 -04:00
Ajay Ramachandran
c4c6a07aeb
Added install instructions 2019-09-10 23:31:16 -04:00
Ajay Ramachandran
d922de564d
Added new admin endpoints 2019-09-10 23:28:15 -04:00
Ajay Ramachandran
662dcf430a Changed endpoint to post for shadowBanUser. 2019-09-10 23:18:57 -04:00
Ajay Ramachandran
63eb6cd110
Merge pull request #32 from ajayyy/experimental
Added VIP
2019-09-10 17:12:19 -04:00
Ajay Ramachandran
c924be4dc9 Changed shadow ban user endpoint to use new naming scheme 2019-09-04 22:07:23 -04:00
Ajay Ramachandran
991f155aca Made it so that VIP users start with votes after a submission. 2019-09-04 21:39:21 -04:00
Ajay Ramachandran
9ed48b1bfc Made VIP downvote count for more.
Also made it save when there is a "super downvote" to properly reverse it later.
2019-09-04 21:34:39 -04:00
Ajay Ramachandran
83c3a35ce4 Added vip addition endpoint. 2019-09-04 14:44:55 -04:00
Ajay Ramachandran
d130af130b
Merge pull request #30 from ajayyy/experimental
Added port to config
2019-09-04 13:41:25 -04:00
Ajay Ramachandran
ff0b661f26 Added port to config 2019-09-04 13:41:07 -04:00
Ajay Ramachandran
62095b2847
Merge pull request #29 from ajayyy/experimental
Admin can change usernames + Config file
2019-09-04 13:21:06 -04:00
Ajay Ramachandran
347ae87b12 Added config file. 2019-09-04 13:18:47 -04:00
Ajay Ramachandran
b4c3edcd59 Allowed set username to be used by the admin to change any username. 2019-09-03 19:27:02 -04:00
Ajay Ramachandran
50b5f8ca21
Merge pull request #28 from ajayyy/experimental
Added days saved stat
2019-09-01 22:36:51 -04:00
Ajay Ramachandran
705a3c39da Added days saved stat. 2019-09-01 22:36:20 -04:00
Ajay Ramachandran
6750a5e875
Merge pull request #26 from ajayyy/experimental
ShadowHide + Sql Schemas
2019-08-24 17:06:23 -04:00
Ajay Ramachandran
cd29ce1ca3 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into experimental
# Conflicts:
#	index.js
2019-08-24 17:05:10 -04:00
Ajay Ramachandran
d79921f2d6 Added shadow banning and unshadow banning users. 2019-08-24 16:24:39 -04:00
Ajay Ramachandran
f5d820c511
Merge pull request #24 from bershanskiy/master
Fix documentation
2019-08-23 14:54:30 -04:00
Ajay Ramachandran
1b4767cd38 Locked the username for undefined. 2019-08-22 16:15:13 -04:00
Ajay Ramachandran
58d3699a06 Fixed includes check 2019-08-22 14:18:31 -04:00
Ajay Ramachandran
49af7dd65d Added new shadowHidden variable that only lets it get sent out to submitters. 2019-08-22 00:01:27 -04:00
Ajay Ramachandran
4ceb7f3b47 Removed unneeded table from schema 2019-08-21 17:06:22 -04:00
Ajay Ramachandran
a6b166588f Added sql schemas 2019-08-21 17:05:08 -04:00
Anton Bershanskiy
1b4ae3ab3c
Fix documentation
In actual implementation /api/getUsername is using GET.
2019-08-21 15:54:42 -05:00
Ajay Ramachandran
8c0321f2cc
Merge pull request #22 from ajayyy/add-license-1
Create LICENSE
2019-08-19 20:59:21 -04:00
Ajay Ramachandran
a3f60477ec
Create LICENSE 2019-08-19 20:59:10 -04:00
Ajay Ramachandran
69258587bc Raised stats limit to 100. 2019-08-19 20:42:25 -04:00
Ajay Ramachandran
9742129547
Merge pull request #21 from ajayyy/experimental
Fixed duplicate vote check being broken
2019-08-19 15:53:50 -04:00
Ajay Ramachandran
db1a3a4062 Fixed duplicate vote check being broken. 2019-08-19 15:53:31 -04:00