Commit Graph

420 Commits

Author SHA1 Message Date
Ajay Ramachandran
cf592554f1 Merge branch 'master' into unhide-vote 2021-07-03 22:37:23 -04:00
Ajay Ramachandran
cb950ac5d7 Merge pull request #288 from mchangrh/remove-altvote
remote vote types 10/11
2021-07-03 22:36:42 -04:00
Ajay Ramachandran
c5fd4b41b6 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2021-07-03 17:27:00 -04:00
Ajay Ramachandran
f5cfd6bfb5 Add try catch in dump database 2021-07-03 17:26:59 -04:00
Michael C
931b3fdc68 disallow vote types 10/11 2021-07-02 23:07:17 -04:00
Michael C
107b21c463 restore hidden segments with vip upvote 2021-07-02 21:57:00 -04: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
214ddc9807 Add warning reason in postWarning 2021-06-29 14:56:57 +07:00
Ajay Ramachandran
6f18a49ba0 Switch username update to one query 2021-06-28 22:05:15 -04: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
Michael C
33a45ce0a2 fix TS declarations 2021-06-27 01:05:06 -04:00
Haidang666
f3542b7402 Fix column name for postgre 2021-06-27 11:51:04 +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
d4695f0192 add getUserID and tests 2021-06-25 03:33:41 -04:00
Haidang666
9b43ce0ab7 Add purge all segments of VideoId 2021-06-24 12:29:02 +07:00
Ajay Ramachandran
f71cd57bc7 Fix top users 2021-06-24 01:25:26 -04:00
Ajay Ramachandran
c5245cb8e2 Save more info in unlisted video endpoint 2021-06-23 23:58:33 -04:00
Ajay Ramachandran
15b3cb20b3 Remove print statement 2021-06-23 20:11:11 -04:00
Ajay Ramachandran
42da1b6c23 Add endpoint to submit unlisted videos
A temporary measure which will be removed next month

https://support.google.com/youtube/answer/9230970
2021-06-23 19:19:30 -04:00
Nanobyte
7b9e06a471 Merge branch 'master' into fix/prepare-statements 2021-06-22 01:05:48 +02:00
Nanobyte
7c3c1988a3 Fix getTopUsers 2021-06-22 01:00:22 +02:00
Nanobyte
a005a961f9 Fix test cases 2021-06-22 00:59:56 +02: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
9351bef61c Add preview category to leaderboard 2021-06-20 15:56:02 -04:00
Ajay Ramachandran
f6d79616a4 Fix leaderboard not working with postgres 2021-06-20 13:59:53 -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
f45241d494 Merge pull request #259 from mchangrh/shadowban-clear-cache
clearCache after shadowban
2021-06-20 13:05:49 -04:00
Ajay Ramachandran
df1d742339 Use for each instead of map 2021-06-20 13:04:52 -04:00
Ajay Ramachandran
96015d402b Make reputation take into account self downvotes 2021-06-20 12:57:32 -04:00
Michael C
47289db13e clearCache after shadowban 2021-06-18 20:57:01 -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
Ajay Ramachandran
183462ff85 Add brackets 2021-06-18 18:49:37 -04:00
Michael C
b84241c6ad use isUserVIP instead 2021-06-18 18:44:43 -04:00
Michael C
c13bc6cfbd added tests and route 2021-06-18 17:46:18 -04:00
Michael C
04da532962 implement #253 2021-06-18 16:38:24 -04:00
Michael C
4963f4dc08 style fixes 2021-06-18 15:33:14 -04:00
Michael C
c92e44bb1d made 400/404 behaviour consistent with API docs 2021-06-18 14:43:59 -04:00
Ajay Ramachandran
b9bcc35dd2 Allow removing warnings created by anyone 2021-06-17 19:08:36 -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
20ae560bb1 Add semicolons 2021-06-16 13:23:25 -04:00
Michael C
7fe787c5ab remove extra properties 2021-06-16 00:53:34 -04:00