Commit graph

1166 commits

Author SHA1 Message Date
Michael C
ed0d832e08
use partialDeepEquals for tests 2021-08-03 00:19:37 -04:00
Michael C
b39c06a9ef
add tests, new partialDeepEquals 2021-08-02 21:59:06 -04:00
Ajay Ramachandran
31a7838851
Merge pull request #331 from mchangrh/segmentInfo-userAgent
include userAgent in segmentInfo
2021-08-01 16:00:38 -04:00
Michael C
7dff254604
add userAgent to tests 2021-08-01 15:28:17 -04:00
Michael C
d4078f0f91
return all from segmentInfo 2021-08-01 15:28:17 -04:00
Ajay Ramachandran
90152240c7
Merge pull request #328 from HaiDang666/refactor
Use assert in test
2021-08-01 12:41:15 -04:00
Haidang666
85e78d2490 Use assert in test 2021-08-01 14:59:25 +07:00
Ajay Ramachandran
3368615a77 Add test for body user agent 2021-08-01 02:57:02 -04:00
Ajay Ramachandran
ee8d20a43d Fix full user agent being saved 2021-08-01 02:46:21 -04:00
Ajay Ramachandran
8f0f01e6b2 Parse user agent header 2021-07-31 21:49:10 -04:00
Ajay Ramachandran
bdf0953f35 Save entire user agent 2021-07-31 21:03:47 -04:00
Ajay Ramachandran
e056c30f05
Merge pull request #327 from HaiDang666/324_user-agent
Store user-agent in postSkipSegment
2021-07-31 20:56:00 -04:00
Ajay Ramachandran
b07979cbc7
Merge pull request #326 from mchangrh/reenable-warning
re-enable warning if still within issue time
2021-07-31 20:55:00 -04:00
Haidang666
01cbf67bcb Fix test on new warning reason format 2021-07-30 13:50:46 +07:00
Haidang666
ce193b60f7 Store user-agent in postSkipSegment 2021-07-30 13:47:21 +07:00
Ajay Ramachandran
2057b0cfa6 Change default warning mininum 2021-07-29 23:53:13 -04:00
Ajay Ramachandran
366de4955b Send warning reason with votes and use quotes 2021-07-29 23:53:02 -04:00
Michael C
32056ab2f1
re-enable warning if still within issue time 2021-07-28 02:52:00 -04:00
Ajay Ramachandran
d4e45cc3b0 Fix newlines in lock categories error message 2021-07-27 13:03:31 -04:00
Ajay Ramachandran
48aa6d6e05 Fixed odd formatting on lock categories error 2021-07-27 12:59:35 -04:00
Ajay Ramachandran
5ca3cb18e4
Merge pull request #323 from HaiDang666/318_display-lock-reason
Return reason in locked categories when submission fail
2021-07-27 12:56:20 -04:00
Haidang666
c701998a35 return reason in locked categories when submission fail 2021-07-27 14:03:51 +07:00
Ajay Ramachandran
4453705938 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2021-07-27 00:36:09 -04:00
Ajay Ramachandran
144f3fa035 Don't strictly check for locked videos 2021-07-27 00:36:07 -04:00
Ajay Ramachandran
fd507d6657
Merge pull request #320 from HaiDang666/refactor-postSkipSegments
Split code in postSkipSegment
2021-07-26 23:49:08 -04:00
Ajay Ramachandran
9aa0ff6de6
Merge pull request #319 from HaiDang666/266_final
Update: most upvoted segments on locked videos as locked submissions
2021-07-26 23:48:58 -04:00
Ajay Ramachandran
37ea8adb73 assert fixed value 2021-07-26 23:46:26 -04:00
Felix
0d6992b80b
Merge branch 'master' into refactor-postSkipSegments 2021-07-27 10:40:38 +07:00
Ajay Ramachandran
7b15957bb8 fix tests 2021-07-25 14:34:55 -04:00
Ajay Ramachandran
b1c5c38bdb Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2021-07-24 16:04:42 -04:00
Ajay Ramachandran
e6b2243496 Add link to discord and matrix 2021-07-24 16:04:40 -04:00
Haidang666
0eb298a943 Update query and test 2021-07-24 15:09:30 +07:00
Haidang666
22debb4374 Split code in postSkipSegment 2021-07-23 13:54:44 +07:00
Ajay Ramachandran
ef71405143
Merge pull request #321 from mchangrh/fixci
fix tests and linting
2021-07-23 00:13:02 -04:00
Ajay Ramachandran
0990a9b87d
Add semicolon 2021-07-22 20:00:42 -04:00
Michael C
87727ef360
fix tests and linting 2021-07-22 17:50:39 -04:00
Ajay Ramachandran
dbc8558ec8 Log submissions for warned users 2021-07-22 11:12:22 -04:00
Ajay Ramachandran
143cdf529d Include default message on error from warning.
Also show userID
2021-07-22 11:02:38 -04:00
Ajay Ramachandran
919c47c993 Fix quote error 2021-07-22 00:08:30 -04:00
Haidang666
2773c5f500 Update: most upvoted segments on locked videos as locked submissions 2021-07-21 16:16:58 +07:00
Ajay Ramachandran
c070e5f40d Fix falsey values getting through tests 2021-07-20 17:21:22 -04:00
Ajay Ramachandran
31103faf92 Improve shadow ban check 2021-07-20 17:15:15 -04:00
Ajay Ramachandran
05ec937b06 Fix youtube api cache key 2021-07-20 13:54:30 -04:00
Ajay Ramachandran
3c5a27d9f5 fix incorrect sql 2021-07-20 13:42:31 -04:00
Ajay Ramachandran
1ad805fda3 reset video duration when vip upvotes hidden segment 2021-07-20 13:40:22 -04:00
Ajay Ramachandran
6171ba7c7a Print times of submissions on locked categories 2021-07-20 12:41:27 -04:00
Ajay Ramachandran
c60b82d40a Only treat video as changed duration if both submitted and api agree 2021-07-20 12:38:45 -04:00
Ajay Ramachandran
13a04a0442 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2021-07-19 16:14:17 -04:00
Ajay Ramachandran
db3701d76a Don't fail for invalid userID 2021-07-19 16:13:14 -04:00
Ajay Ramachandran
a02d14e425
Merge pull request #317 from mchangrh/stricter-eslint
Stricter ESLint rules & linting fixes
2021-07-18 14:39:17 -04:00