Commit graph

562 commits

Author SHA1 Message Date
Ajay
4477ab7ca6 Remove bad test 2024-01-21 19:55:16 -05:00
Ajay
84fd7c170f Add test for VIP downvote without removing 2024-01-03 01:18:57 -05:00
Ajay
b04e0dcd97 DeArrow downvotes 2024-01-03 01:13:35 -05:00
Ajay
33dad0a5e4 Add option to submit without locking
Also fixes voting for an existing thumbnail not unlocking other thumbnails
2024-01-02 19:12:55 -05:00
Michael C
15f19df8a4
clean up shadowban code, exclude long running categories query when possible 2023-12-21 18:37:24 -05:00
Michael C
68bb39c409
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into test-helpers 2023-10-15 00:31:09 -04:00
Michael C
3c6803fb62
getViewsForUser 2023-09-30 21:20:42 -04:00
Michael C
467443a03f
fix typings for getSubmissionUUID, update getStatus 2023-09-30 19:08:23 -04:00
Michael C
d8b93dec00
getLockCategories sort categories 2023-09-29 00:45:43 -04:00
Michael C
26b3ea6a50
use partialDeepEquals for getLockCategories 2023-09-29 00:40:20 -04:00
Michael C
f72b1abf41
getLockCategories
- add insertLock
2023-09-28 23:44:14 -04:00
Michael C
53e5dcb2f0
addUserAsVIP
- add genAnonUser
2023-09-28 20:45:02 -04:00
Michael C
73e5ade529
generate random title 2023-09-28 03:57:06 -04:00
Michael C
31e1f5bc3c
original as bool not string 2023-09-28 03:51:15 -04:00
Michael C
df40047a4b
getUserInfo
- add info property to User
- add insertWarning, Ban
- add insertTitle, TitleVote, Thumbnail, ThumbnailVote
- simplified insertSegments with destructuring
2023-09-28 03:45:28 -04:00
Michael C
ad9344c92f
getChapterNames fix length 2023-09-27 23:57:53 -04:00
Michael C
726983bb9b
getChapterNames
- remove identifier from segmentGen
- add multiGenRandomValue
- add videoInfo query
2023-09-27 23:53:18 -04:00
Michael C
7364499f11
lockCategoriesHTTP
- highLoad
- compact getUserID
- add genRandomValue method
2023-09-27 23:19:25 -04:00
Michael C
5e3ec895d8
add videoID for segment inserter 2023-09-27 22:25:18 -04:00
Michael C
a9ef3815e2
add segment generator
- getIsUserVIP
- postClearCache
- update boilerplate
2023-09-27 22:21:42 -04:00
Michael C
964634dc51
update addFeatures
- add case_boilerplate
- add grantFeature query
2023-09-27 21:03:53 -04:00
Ajay Ramachandran
1e8970859f
Merge pull request #559 from mini-bomba/✝️ℹ️🅿️
Replace "warning" with "tip" in responses from postWarning.ts
2023-09-27 20:40:34 -04:00
Michael C
4438ce7db6
add genUser frameworks, start fixing tests
transformative:
- getUserID
- redisTest
- reputation

mocha test reconfig:
- etag
- getIP
- userCounter
- validateVideoIDs
2023-09-27 20:18:35 -04:00
Michael C
1b5a079bbd
disallow empty new warnings 2023-09-27 15:09:35 -04:00
mini-bomba
7196155d3a
Replace "Warning reason" with "Tip message" 2023-09-16 10:00:33 +02:00
mini-bomba
141f105b79
fix dearrow bans 2023-08-29 16:38:41 +02:00
mini-bomba
c77e71e66a
it's called a ✝️ℹ️🅿️, not warning 2023-08-29 13:48:50 +02:00
Michael C
4600b8a599
show stats to shadowhidden users 2023-08-15 19:45:17 -04:00
Ajay
9d1af3bdff Verify old submissions when you become verified 2023-08-04 14:15:46 -04:00
Ajay
1dbb393e4d Fix type error in tests 2023-08-03 01:16:57 -04:00
Ajay
665b91eb65 Revert distinct selection change as it seems to be misbehaving 2023-07-27 03:04:46 -04:00
Ajay Ramachandran
e942ac5e22
Merge pull request #549 from mini-bomba/voting-requirements
Make voting requirements more strict
2023-07-26 16:06:18 -04:00
Ajay
d23e9b9940 Only show one title/thumbnail per userID 2023-07-26 15:19:22 -04:00
Ajay
b6f29b8b6d Fix shadow ban test 2023-07-23 23:35:50 -04:00
Ajay
e9fcf6b445 Add seperate type for dearrow warning
Also add dearrow warning reason as option for user info
2023-07-17 22:42:29 -04:00
Ajay
2e29666781 Remove mysql code 2023-07-05 01:25:38 -04:00
Ajay
8b418c8851 Add hiding dearrow submissions in ban code 2023-07-05 01:23:48 -04:00
Ajay
633f128e90 Fix voting on an existing submission not working. 2023-06-13 00:12:16 -04:00
Ajay
3bb8d5b58b Add verification where new users start with lower votes 2023-06-10 12:35:43 -04:00
Ajay
ef3e48ec24 Send video duration if known 2023-06-08 15:28:37 -04:00
mini-bomba
777944665d
Make voting requirements more strict
This aims to reduce the amount of false votes by users with no valid segments of the category they're voting for.
New tests included, one modified to work under new requirements.
Also merged userAbleToVote and ableToVote in voteOnSponsorTime.ts to skip unnecessary queries for VIPs.
2023-06-08 16:50:31 +02:00
Ajay
0932f63398 Await in post branding test case 2023-06-08 04:01:23 -04:00
Ajay
5834643ba0 Add random timestamp generation to get branding 2023-06-08 03:39:44 -04:00
Ajay
8e5be402e1 Fix VIP title and thumbnail unlock unlocking everything 2023-05-31 14:28:01 -04:00
Ajay
9129cee9f0 Fix tests 2023-05-21 20:12:17 -04:00
Ajay
8d1025e17d Add title and thumbnails to user stats 2023-05-09 23:53:18 -04:00
Ajay
6f0abddd3e Reenable locks 2023-04-28 14:15:18 -04:00
Ajay
a1b5c38e5a Disable lock tests for now 2023-04-17 19:38:31 -04:00
Ajay Ramachandran
bffc10e38f
Merge pull request #534 from ajayyy/clickbait
Clickbait
2023-03-27 00:54:52 -04:00
Ajay
7921bc4582 Remove chapters free test 2023-03-19 00:25:59 -04:00