Commit Graph

26 Commits

Author SHA1 Message Date
Michael C
a64b8f99b7 use shared parseParams helper 2023-01-28 02:40:09 -05:00
Michael C
a5a90e3c84 add getHashCache where applicable= 2021-11-27 02:41:34 -05:00
Michael C
03c95ca158 rename clearSegmentCache 2021-11-15 01:48:14 -05:00
Haidang666
356974b478 add service to table only have videoID 2021-09-30 13:56:55 +07:00
Michael C
a028eaa41a object-curly-spacing 2021-09-22 18:52:35 -04:00
Michael M. Chang
b50b215f20 avoid unnecessary eslint-disable-line 2021-09-03 17:48:00 -04:00
Ajay Ramachandran
c3a5b22dad Move unHideSubmissions to helper function 2021-08-28 00:18:31 -04:00
Michael C
265a01dcde re-shadowban user
if user is already shadowbanned but unhideOldSubmissions is true, sets all submissions to hidden. If not true, then return 409 duplicate
2021-08-25 01:56:34 -04:00
Ajay Ramachandran
73dfe2ef11 Remove casting 2021-08-03 21:05:07 -04:00
Haidang666
38a09b164d Add Limit 1 when check user as vip 2021-08-03 09:28:28 +07:00
Michael C
c0b1d201ad fix non-format eslint in src/ 2021-07-12 02:12:22 -04:00
Michael C
8df0c31d35 consistent return and sendStatus 2021-07-04 02:04:39 -04:00
Michael C
d89b26b77d fix eslint-errors 2021-07-04 01:36:03 -04:00
Ajay Ramachandran
48d88614fb Move shadow ban list to public db
Warning: Migration is not automatic
2021-06-20 13:41:35 -04:00
Ajay Ramachandran
df1d742339 Use for each instead of map 2021-06-20 13:04:52 -04:00
Michael C
47289db13e clearCache after shadowban 2021-06-18 20:57:01 -04:00
Ajay Ramachandran
e06eb96fa7 Add ability to ban specific category 2021-06-14 16:23:39 -04:00
Nanobyte
f561388a1f Rename noSegments to lockCategories 2021-04-24 01:54:42 +02:00
Ajay Ramachandran
8729796e87 Make tests pass running with postgres 2021-03-07 00:21:56 -05:00
Ajay Ramachandran
54e69b266d Fix tests 2021-03-06 00:25:18 -05:00
Ajay Ramachandran
e9b7eac289 Finish up conversion to use case-sensitive column names 2021-03-04 23:29:01 -05:00
Ajay Ramachandran
ff4af3786e Switch to postgres + promises 2021-03-01 20:40:31 -05:00
Ajay Ramachandran
229da1f62d Don't hide submissions from locked videos when banning 2020-12-23 00:22:52 -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
Dainius Daukševičius
62b008e693 remove TODO comments 2020-10-26 19:13:30 +02:00
Dainius Daukševičius
08d27265fc migrate to typescript 2020-10-26 19:13:30 +02:00