Commit Graph

488 Commits

Author SHA1 Message Date
Ajay Ramachandran
3fe7501802 Support private db with postgres 2021-03-06 19:29:03 -05:00
Ajay Ramachandran
54e69b266d Fix tests 2021-03-06 00:25:18 -05:00
Ajay Ramachandran
44f10b9ff9 Removed some unused logs 2021-03-04 23:30:30 -05:00
Ajay Ramachandran
e9b7eac289 Finish up conversion to use case-sensitive column names 2021-03-04 23:29:01 -05:00
Ajay Ramachandran
2772a9dcc6 Switch to case sensitive and get submitting + getting working 2021-03-04 20:23:05 -05:00
Ajay Ramachandran
1a66be8665 Make schemas work with postgres 2021-03-04 19:44:54 -05:00
Ajay Ramachandran
2c211d4730 Fix preprocessor not being used for initial schema 2021-03-01 22:40:13 -05:00
Ajay Ramachandran
88855ab695 Support schema upgrading with postgres 2021-03-01 22:20:44 -05:00
Ajay Ramachandran
46b42da5bd Update tests to use promises 2021-03-01 21:37:35 -05:00
Nanobyte
da3a5fe787 Return new created segments on success 2021-03-02 02:44:51 +01:00
Ajay Ramachandran
ff4af3786e Switch to postgres + promises 2021-03-01 20:40:31 -05:00
Nanobyte
ac945254d6 Limit reward time for getSavedTimeForUser endpoint 2021-03-02 01:22:02 +01:00
Nanobyte
d6ba5684e0 Limit reward time per segment 2021-02-26 01:57:45 +01:00
Nanobyte
09c9b25178 Fix getSkipSegmentsByHash requires valid json
The categories parameter has to be a valid array with strings in JSON format
2021-02-25 19:08:29 +01:00
Ajay Ramachandran
eeaa1614fa Remove logging and fix voting error 2021-02-20 22:06:00 -05:00
Ajay Ramachandran
8c910b67b4 Only cache for all categories 2021-02-20 22:02:57 -05:00
Ajay Ramachandran
01d318d902 Add redis caching for 404s 2021-02-20 21:13:46 -05:00
Ajay Ramachandran
597dff7ac3 Unlock segment if VIP downvotes 2021-02-18 22:09:57 -05:00
Ajay Ramachandran
e21ebd18a6 Don't ratelimit VIPs 2021-02-18 20:47:26 -05:00
Ajay Ramachandran
57adcd3c65 Replace VIP starting with 1000 votes with locked submissions 2021-02-18 20:24:04 -05:00
Ajay Ramachandran
ef21ceb332 Add segment locking 2021-02-18 19:48:36 -05:00
Ajay Ramachandran
53ae826186 Allow upvotes on locked videos and update message 2021-02-09 19:53:39 -05:00
Ajay Ramachandran
69f95e6398 Fix vote rejection and update warning message 2021-01-26 20:44:32 -05:00
Ajay Ramachandran
3b24dfd4c5 Fix unwarn not working 2021-01-24 12:45:13 -05:00
Ajay Ramachandran
4561148ab2 Fix headers when using node-fetch 2021-01-17 21:18:22 -05:00
Ajay Ramachandran
acc9537bb7 Merge pull request #201 from MRuy/remove-dependency-request
#177 Replace request with node-fetch
2021-01-17 21:05:10 -05:00
Nanobyte
87d2827f0f Fix errors 2021-01-05 01:22:02 +01:00
Nanobyte
aabeb5f493 Replace request with node-fetch 2021-01-05 01:18:34 +01:00
Ajay Ramachandran
7f0a35c88a Fix type issues 2020-12-29 15:12:18 -05:00
Ajay Ramachandran
29ef770759 Add type safety to getSkipSegments 2020-12-29 14:16:11 -05:00
Ajay Ramachandran
432cc42cba Don't allow duplicate warnings 2020-12-29 13:31:15 -05:00
Ajay Ramachandran
baa4e73ba5 Don't remove all warnings 2020-12-29 13:27:54 -05:00
Ajay Ramachandran
78ef129634 Add remove feature to warnUser 2020-12-29 00:18:50 -05:00
Ajay Ramachandran
2769acecc0 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2020-12-28 23:40:51 -05:00
Ajay Ramachandran
7beb521d68 Warning should not hash the reported userID 2020-12-28 19:01:23 -05:00
Ajay Ramachandran
30823b752d Add shadowHidden type 2020-12-28 18:57:57 -05:00
Ajay Ramachandran
e3e9c89a80 Better fix for cache type error 2020-12-28 18:50:47 -05:00
Ajay Ramachandran
bb7cc60118 fix crash when variable missing from cache 2020-12-28 18:47:51 -05:00
Ajay Ramachandran
63c3b1f56b Updated warning message 2020-12-28 17:39:16 -05:00
Ajay Ramachandran
e1a9004ed5 Commit missing type file 2020-12-24 21:38:15 -05:00
Ajay Ramachandran
8129a488a9 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into feat/faster-segments
# Conflicts:
#	src/routes/getSkipSegments.ts
#	src/routes/getSkipSegmentsByHash.ts
#	test/cases/getSegmentsByHash.js
2020-12-24 21:27:08 -05:00
Ajay Ramachandran
229da1f62d Don't hide submissions from locked videos when banning 2020-12-23 00:22:52 -05:00
Ajay Ramachandran
cb0906a52d Remove minimum sponsor duration for VIP 2020-12-20 13:52:22 -05:00
Ajay Ramachandran
8cf3caa77e Only pass error if it exists 2020-12-17 00:28:31 -05:00
Ajay Ramachandran
c8d5cec338 Fix redis type issues 2020-12-17 00:25:33 -05:00
Ajay Ramachandran
a7f04ad732 Update category test + fix double voting issue
Fix #190
2020-12-16 23:47:47 -05:00
Ajay Ramachandran
5deda4603e Allow submitter to change category immediately 2020-12-16 23:00:11 -05:00
Ajay Ramachandran
cd373f4bca Don't allow votes on locked videos 2020-12-16 22:53:49 -05:00
Ajay Ramachandran
9797d7450c Fix issues caused by YouTube API upgrade 2020-12-16 22:53:25 -05:00
Ajay Ramachandran
2cd78d5d2f Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into Dainius14/master
# Conflicts:
#	src/routes/shadowBanUser.js
#	src/routes/voteOnSponsorTime.ts
#	test/cases/getSkipSegments.js
#	test/cases/voteOnSponsorTime.js
2020-12-07 17:35:15 -05:00