Commit Graph

686 Commits

Author SHA1 Message Date
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
Ajay Ramachandran
bd9a411106 Updated packages 2020-04-29 22:15:31 -04:00
Ajay Ramachandran
6a17e4d141 Added test cases for voting and fixed code to support them. 2020-04-29 22:15:16 -04:00
Ajay Ramachandran
ad169fd6e7 Added VIP support to category vote 2020-04-29 21:30:07 -04:00
Ajay Ramachandran
f23ead56ad Updated inserts to new database schema and removed null coalescing 2020-04-29 21:26:11 -04:00
Ajay Ramachandran
98f4d973e7 Added wrong category vote option. 2020-04-29 20:56:34 -04:00
Ajay Ramachandran
cb2b0aabf3 Merge branch 'testing' of https://github.com/ajayyy/SponsorBlockServer into new-vote-options
# Conflicts:
#	src/routes/voteOnSponsorTime.js
2020-04-29 19:58:19 -04:00
Ajay Ramachandran
b5fcdea62f Don't upgrade if read only 2020-04-29 19:40:17 -04:00
Ajay Ramachandran
0eec924c02 Made all updates required be performed at once. 2020-04-29 18:31:19 -04:00
Ajay Ramachandran
e27ef39dcf Remove unused function 2020-04-29 18:26:05 -04:00
Ajay Ramachandran
37587fd12a Merge pull request #79 from Joe-Dowd/mod-report-submission
add user history to discord notification on segment reporting
2020-04-29 17:45:56 -04:00
Joe-Dowd
d930853edf review changes 2020-04-29 22:27:38 +01:00
Joe-Dowd
e9e525ec63 fixed formatting 2020-04-28 05:18:54 +01:00
Joe-Dowd
13aee13f18 Improved phrasing of error responses \n removed debug logs 2020-04-28 05:10:55 +01:00
Joe-Dowd
f6df7e5f6f remove testing logs 2020-04-28 05:07:39 +01:00
Joe-Dowd
cfa80be4c7 add user history to discord notification on segment reporting 2020-04-28 05:04:51 +01:00
Ajay Ramachandran
cde51a3059 Only unhide submissions with normal vote 2020-04-27 23:02:29 -04:00
Ajay Ramachandran
d767f2ff6b Added schema upgrade system and started on new vote type 2020-04-27 23:01:51 -04:00
Andrew Lee
074e9fc0eb Merge branch 'nb-mod-fetch' of https://github.com/andrewzlee/SponsorBlockServer into nb-mod-fetch 2020-04-25 17:45:47 -04:00
Andrew Lee
ee75eea939 Changed interval check 2020-04-25 17:42:33 -04:00
Andrew Lee
1026f65280 Changed interval check 2020-04-25 17:38:21 -04:00
Andrew Lee
b101831a1b Extended timeout to test cases where necessary 2020-04-25 17:15:19 -04:00
Andrew Lee
ba555c0a7c Syntax fixes to pass tests. 2020-04-25 17:11:44 -04:00
Ajay Ramachandran
74169e6caf Merge pull request #77 from ajayyy/testing
Update master
2020-04-24 13:53:17 -04:00
Ajay Ramachandran
70ca58f98e Merge pull request #76 from Joe-Dowd/bugfix-0durationautomod
Bugfix 0durationautomod
2020-04-24 13:50:58 -04:00