Commit Graph

1010 Commits

Author SHA1 Message Date
Ajay Ramachandran
2cbeb50927 Raise max submissions per user to 16 2020-05-25 22:22:53 -04:00
Martijn van der Ven
3167c24f75 Put hashedVideoID column before shadowHidden column 2020-05-23 21:27:21 +02:00
Martijn van der Ven
c7fd603933 Respond Not Found when a prefix is empty 2020-05-23 21:25:38 +02:00
Martijn van der Ven
c2510d302a Limit overlapping segments to just one through weighted randomness 2020-05-23 21:17:47 +02:00
Martijn van der Ven
d8203dce77 Make sure to always insert hashed video ID 2020-05-23 17:57:33 +02:00
Martijn van der Ven
803b1fa505 Add initial version of querying by hash prefix 2020-05-23 17:12:40 +02:00
Martijn van der Ven
ca46f4c9ac Enable database upgrades to run 2020-05-23 17:12:30 +02:00
Ajay Ramachandran
51f760332b Changed getIP to be all lowercase 2020-05-17 01:38:15 -04:00
Ajay Ramachandran
a2caa53664 Only sponsors must be longer than 1 second.
Also added proper error message when submission is too short.
2020-05-16 18:33:16 -04:00
Ajay Ramachandran
88a9628e7e Disable IP ratelimiting 2020-05-16 16:54:51 -04:00
Ajay Ramachandran
34a33bbda1 Fixed voting on non existent submission status in wrong spot 2020-05-16 16:41:55 -04:00
Ajay Ramachandran
261432a7fd Fix isUserTrustworthy missing from voting method 2020-05-16 16:40:18 -04:00
Ajay Ramachandran
06d1c082fb Fix issues with userID getting in voting 2020-05-16 00:42:38 -04:00
Ajay Ramachandran
7f07794ce4 Removed null coalescence operator 2020-05-16 00:15:33 -04:00
Ajay Ramachandran
dc7cd0993a Merge branch 'testing' of https://github.com/ajayyy/SponsorBlockServer 2020-05-16 00:12:55 -04:00
Ajay Ramachandran
7b31c40676 Prevent userID errors 2020-05-16 00:12:31 -04:00
Ajay Ramachandran
81e9d8ce0f Merge pull request #85 from ajayyy/testing
Make VIP submissions take priority
2020-05-16 00:09:57 -04:00
Ajay Ramachandran
0315aa67d7 make VIP submissions take priority. 2020-05-16 00:07:56 -04:00
Ajay Ramachandran
f57e73d87b Merge pull request #84 from ajayyy/testing
Testing
2020-05-15 19:18:03 -04:00
Ajay Ramachandran
3e2ab9c30a Merge pull request #80 from ajayyy/get-ip-fixes
Get IP options
2020-05-15 19:16:19 -04:00
Ajay Ramachandran
ad7d1a53d9 Added string check to getIP 2020-05-15 19:14:30 -04:00
Ajay Ramachandran
46abd002f2 Merge pull request #83 from ajayyy/new-vote-options
Fix adding VIPs
2020-05-14 18:31:18 -04:00
Ajay Ramachandran
8e7595cd34 Fix adding VIPs 2020-05-12 21:07:09 -04:00
Ajay Ramachandran
8e150c6862 Don't check NB for non-sponsors and properly reject if any submission fails the criteria for multiple segment submissions 2020-05-11 19:00:33 -04:00
Ajay Ramachandran
b619d91aab Merge pull request #82 from ajayyy/new-vote-options
Prevent crash when category-voting on invalid UUID
2020-05-11 18:10:12 -04:00
Ajay Ramachandran
0060b5e5af Prevent crash when category-voting on invalid UUID 2020-05-11 18:07:57 -04:00
Ajay Ramachandran
ada64d97a6 Merge pull request #78 from ajayyy/new-vote-options
New vote options + Auto-schema upgrade
2020-05-10 20:21:50 -04:00
Ajay Ramachandran
14c0aa1ec1 Make key in config unique 2020-05-10 20:19:04 -04:00
Ajay Ramachandran
b2705dfb2d Prevented upvotes on "dead" submissions unless they are VIP. 2020-05-10 00:08:05 -04:00
Ajay Ramachandran
8638698d61 Added schema upgrades for both DBs 2020-05-03 13:25:45 -04:00
Ajay Ramachandran
d4328f4d54 Change the version code to be the last run upgrade file. 2020-05-03 12:08:07 -04:00
Ajay Ramachandran
8eecffd3d5 Changed from version table to a key-value config table. 2020-05-03 12:01:49 -04:00
Ajay Ramachandran
bf2646978a Removed NB URL from example config 2020-05-03 11:49:04 -04:00
Ajay Ramachandran
f5eb522e39 Removed default NB server 2020-05-03 11:46:16 -04:00
Ajay Ramachandran
e449b5a436 Merge branch 'nb-mod-fetch' of https://github.com/andrewzlee/SponsorBlockServer into nb-mod-fetch 2020-04-30 23:42:14 -04:00
Ajay Ramachandran
318d816a37 Change test case to check 7s 2020-04-30 23:41:38 -04:00
Ajay Ramachandran
684000074e Fix overlap percentage wrong
Co-authored-by: Andrew Lee <leezandrew@gmail.com>
2020-04-30 23:40:04 -04:00
Ajay Ramachandran
5e252ed4af Added extra message to auto moderator 2020-04-30 21:19:37 -04:00
Ajay Ramachandran
eb936d579c Don't moderate if VIP. 2020-04-30 19:17:52 -04:00
Ajay Ramachandran
a278036f1d Added neural block mock 2020-04-30 19:13:42 -04:00
Ajay Ramachandran
0cf84612e9 Merge branch 'get-ip-fixes' of https://github.com/ajayyy/SponsorBlockServer into nb-mod-fetch
# Conflicts:
#	src/routes/postSkipSegments.js
2020-04-30 19:04:23 -04:00
Ajay Ramachandran
c2b17ea7a8 Made auto-moderate only call API once 2020-04-30 19:00:26 -04:00
Ajay Ramachandran
f4ce5618bf Merge branch 'testing' of https://github.com/ajayyy/SponsorBlockServer into nb-mod-fetch
# Conflicts:
#	src/routes/postSkipSegments.js
#	test/cases/postSkipSegments.js
2020-04-30 18:44:49 -04:00
Ajay Ramachandran
8290c9e1f4 Added new NB overlapping code 2020-04-30 18:39:03 -04:00
Ajay Ramachandran
abee010291 Renamed variables and added spacing. 2020-04-30 18:15:17 -04:00
Ajay Ramachandran
004f714924 Use response.ok 2020-04-30 18:10:27 -04:00
Andrew Lee
9fcd23d63a Let NB mod fail on any internal server error 2020-04-30 14:16:35 -07:00
Ajay Ramachandran
9a317a2c23 Added getIP options 2020-04-30 00:34:34 -04:00
Ajay Ramachandran
e303405ee0 Check before mkdir 2020-04-30 00:31:42 -04:00
Ajay Ramachandran
5c0062d9df Make directories if needed for the databases 2020-04-29 22:21:15 -04:00