Commit Graph

585 Commits

Author SHA1 Message Date
mini-bomba
655789e62d Limit username creation 2025-04-29 00:10:20 +02:00
mini-bomba
9bc4bf8c7b Add request validator rule names 2025-04-26 02:10:33 +02:00
mini-bomba
5c249fb02b test cases for the request validator engine 2025-04-25 21:11:30 +02:00
Ajay
31e678fdc2 Store titles for casual vote submissions
When an uploader changes the title, it will reset the casual votes
2025-02-17 03:16:57 -05:00
Ajay
5f9b4c8acc Make casual downvotes apply to all categories 2025-02-13 04:03:38 -05:00
Ajay
ccde64e90f Change casual submission to allow submitting multiple categories 2025-02-06 02:57:09 -05:00
Ajay
4abf57b0ce Save casual mode status in db 2025-02-06 02:51:13 -05:00
Ajay
07435b9af1 Add casual mode endpoint 2025-02-05 03:38:55 -05:00
Ajay
06f83cd8d4 Allow voting and viewing with partial UUID 2025-01-18 02:04:27 -05:00
Ajay
2455d2cd7e Make hasStartSegment result optional 2025-01-17 23:59:17 -05:00
Ajay
e2a9976cd0 Add hasStartSegment to video label 2025-01-17 23:30:32 -05:00
Ajay
bba06511ce Remove unnecessary parts of video labels request 2025-01-17 04:38:08 -05:00
Ajay
b2981fe782 Don't allow multiple downvotes on one submission 2024-11-10 15:21:40 -05:00
Ajay
c496be5651 Disable innertube tests while they are broken 2024-09-01 19:00:59 -04:00
Ajay
258749ac31 Add more strict requirements for voting for original thumbnails 2024-09-01 18:56:29 -04:00
mini-bomba
3f026409cd Don't show completely unrelated chapter suggestions
Chapter suggestions should be at least slightly related to what the user
has already typed.
This change stops the server from sending suggestions that postgresql
deems to be "less than 10% similar"

Also modified tests to reflect this change.
2024-07-29 02:26:53 +02:00
mini-bomba
7c1abd9747 Make returned video duration in getBranding.ts consistent
Instead of picking the first segment returned by the db (i.e. possibly
random), sort segments by submission time and use the oldest visible
segment with a non-zero video duration.
2024-05-04 21:56:03 +02:00
Ajay
2cd9401a51 Fix etag tests 2024-04-11 18:12:02 -04:00
Ajay
af31f511a5 Add tests for fetch all 2024-03-24 13:52:33 -04:00
Ajay
c19d6fe97a Only send low voted segments when asked for 2024-03-22 18:37:39 -04:00
Ajay
47c109f012 Fix act as vip unlocking segments 2024-03-21 19:35:13 -04:00
Ajay
d5ebd8ec1a Improve self downvoting for dearrow 2024-03-20 13:47:23 -04:00
Ajay
f3fffa56c9 Don't allow downvoting locked segments 2024-02-08 15:47:25 -05:00
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