Commit graph

187 commits

Author SHA1 Message Date
Michael C
cef6d5f365
fix eslint errors 2021-07-04 23:36:47 -04:00
Michael C
1c116eda3b
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into getLockCategories 2021-07-04 23:33:21 -04:00
Michael C
a860e96d35
getLockCategoresByHash 2021-07-04 23:33:12 -04:00
Michael C
719a0956ac
add getLockCategories 2021-07-04 17:03:28 -04:00
Michael C
3c197ec3d9
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fix-eslint 2021-07-04 15:23:00 -04:00
Ajay Ramachandran
0a60ca6468 Add repeating category for fetching by hash
Fixes #235
2021-07-04 14:20:54 -04:00
Ajay Ramachandran
990572ff31 Add parameter to fetch specific segments 2021-07-04 14:15:17 -04:00
Michael C
d89b26b77d
fix eslint-errors 2021-07-04 01:36:03 -04:00
Ajay Ramachandran
be277d0218
Merge pull request #284 from HaiDang666/283_show-lastest-warning
Show lastest warning when post segment
2021-07-03 22:46:26 -04:00
Ajay Ramachandran
a7315eaee0 Add case for default warning message 2021-07-03 22:45:13 -04:00
Ajay Ramachandran
cf592554f1
Merge branch 'master' into unhide-vote 2021-07-03 22:37:23 -04:00
Michael C
931b3fdc68
disallow vote types 10/11 2021-07-02 23:07:17 -04:00
Michael C
36a5b4e1d3
VIP upvotes unhide segments
also added test for undo-vote
2021-07-02 22:54:54 -04:00
Haidang666
09e50d432e Update postSegment test with reason 2021-07-01 11:31:35 +07:00
Ajay Ramachandran
7a877a9653
Merge pull request #282 from HaiDang666/276_warn-reason
User warning reason
2021-06-30 13:43:08 -04:00
Ajay Ramachandran
ce59d3f95f Don't fail if row is undefined 2021-06-30 00:01:40 -04:00
Haidang666
081f2d14b7 Add test, Fix sql syntax 2021-06-30 08:59:20 +07:00
Ajay Ramachandran
8b54e965a2 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2021-06-28 13:24:04 -04:00
Ajay Ramachandran
0ddde452e3 Auto-lock username when admin changes it
https://github.com/ajayyy/SponsorBlockServer/issues/168
2021-06-28 13:20:57 -04:00
Ajay Ramachandran
7dbd4a3150
Merge pull request #275 from HaiDang666/193_log-username-change
Add log when update username
2021-06-27 18:13:21 -04:00
Ajay Ramachandran
98b5fa7bce
Merge pull request #274 from mchangrh/getUserID
GET api/userID
2021-06-27 18:10:35 -04:00
Haidang666
41ba37c04e Fix boolean comparison, Add log table to schema visual 2021-06-27 11:57:39 +07:00
Haidang666
f5bb221ecd Add log when update username 2021-06-27 11:45:42 +07:00
Michael C
2f50d80a75
add explit param 2021-06-26 23:02:52 -04:00
Michael C
b06a6fbb51
redos prevention 2021-06-25 15:57:41 -04:00
Michael C
f2490beea2
put in limits and escapes 2021-06-25 14:35:51 -04:00
Michael C
09ab1dabdf
set limit of 64 characters for lookup 2021-06-25 11:57:27 -04:00
Michael C
f29bafe89a
fiix tests 2021-06-25 03:37:27 -04:00
Michael C
d4695f0192
add getUserID and tests 2021-06-25 03:33:41 -04:00
Michael C
2ab782f4b6
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-tests 2021-06-25 00:54:38 -04:00
Ajay Ramachandran
3c3c963fd3 Fixed captialization error 2021-06-24 02:16:26 -04:00
Michael C
ae8a25e481
more edge cast test cases
- check for null instead of 0 #267
- check that parameter specifying multiple overrides repeating parameters
2021-06-24 01:37:51 -04:00
Ajay Ramachandran
0bbb2aa60d Add one more check in tests 2021-06-24 01:36:54 -04:00
Haidang666
9b43ce0ab7 Add purge all segments of VideoId 2021-06-24 12:29:02 +07:00
Nanobyte
7b9e06a471
Merge branch 'master' into fix/prepare-statements 2021-06-22 01:05:48 +02:00
Nanobyte
a005a961f9 Fix test cases 2021-06-22 00:59:56 +02:00
Nanobyte
4b1f5b4a44 Remove console log from test case 2021-06-22 00:56:00 +02:00
Ajay Ramachandran
0b24871415
Fix comment in reputation test 2021-06-21 18:42:54 -04:00
Ajay Ramachandran
a7cb0959e2
Merge pull request #262 from mchangrh/repeated-param
parse repeated parameters
2021-06-21 14:21:17 -04:00
Nanobyte
11e6c93932 Merge remote-tracking branch 'upstream/master' into fix/prepare-statements 2021-06-21 18:19:50 +02:00
Michael C
dd74dd3b1b
parse repeated parameters 2021-06-21 00:33:48 -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
96015d402b Make reputation take into account self downvotes 2021-06-20 12:57:32 -04:00
Ajay Ramachandran
1770608525
Merge pull request #257 from mchangrh/vip-cache-clear
VIP endpoint for clearing cache of video
2021-06-18 19:01:08 -04:00
Michael C
c13bc6cfbd
added tests and route 2021-06-18 17:46:18 -04:00
Michael C
c92e44bb1d
made 400/404 behaviour consistent with API docs 2021-06-18 14:43:59 -04:00
Ajay Ramachandran
1dcb63f2cc
Fix typo in test 2021-06-17 19:09:24 -04:00
Ajay Ramachandran
0b967b9f45
Merge pull request #252 from mchangrh/segmentInfo
Implementation of segmentInfo and new userInfo properties
2021-06-16 13:24:39 -04:00
Ajay Ramachandran
5fe6ce6656
Merge pull request #250 from mchangrh/fix-getskipsegment-test
Fix Test Suite
2021-06-16 00:47:55 -04:00
Michael C
8dcc1a4a53
add getSegmentInfo with tests 2021-06-16 00:33:51 -04:00