Ajay
65e7d24b7d
Fix get branding by hash rong query
2023-09-09 19:07:50 -04:00
Ajay
d08c423c6a
Verify old submissions when adding dearrow feature
2023-09-06 10:53:14 -04:00
mini-bomba
55150cb301
do user & IP queries asynchronously in checkbanStatus()
...
Co-authored-by: Kendell R <KTibow@users.noreply.github.com>
2023-08-31 14:59:22 +02:00
mini-bomba
141f105b79
fix dearrow bans
2023-08-29 16:38:41 +02:00
mini-bomba
c2a3630d49
create an isUserBanned utility function
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
Ajay
345c740fdc
Fix local key regex
2023-08-22 12:00:59 -04:00
Ajay
d84276a86a
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2023-08-21 17:48:17 -04:00
Ajay
16c7ad5531
Return 404 for non existent feature flag
2023-08-21 17:48:13 -04:00
Michael C
4600b8a599
show stats to shadowhidden users
2023-08-15 19:45:17 -04:00
Ajay
e9e1fd5228
Require time when generating key
2023-08-06 13:42:33 -04:00
Ajay
48fa55cc7a
Add feature flag endpoint
2023-08-05 23:01:24 -04:00
Ajay
ecfc2c14c8
Remove minimum submission duration for mutes
2023-08-05 13:59:02 -04:00
Ajay
f58da275eb
Fix group by not working on postgres
2023-08-04 14:36:08 -04:00
Ajay
0723503a98
Add DeArrow submitter feature
2023-08-04 14:17:41 -04:00
Ajay
9d1af3bdff
Verify old submissions when you become verified
2023-08-04 14:15:46 -04:00
Ajay
b3cec20215
Better handling of verification for self downvotes
2023-08-04 13:53:23 -04:00
Ajay
b02134c016
Don't send angle brackets
2023-08-04 13:15:43 -04:00
Ajay
c3c8f38423
Rename var to be more clear
2023-08-03 01:50:50 -04:00
Ajay
1dbb393e4d
Fix type error in tests
2023-08-03 01:16:57 -04:00
Ajay
dfa4578d28
Better token generation
2023-08-03 00:58:01 -04:00
Ajay
99cb22a5e6
Also clear branding cache when clearing segment cache
2023-07-29 18:44:52 -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
f0b0217c78
Fix distinct query on postgres
2023-07-26 16:02:21 -04:00
Ajay
d23e9b9940
Only show one title/thumbnail per userID
2023-07-26 15:19:22 -04:00
Ajay
f63fa09605
Handle exceptions, and prevent crashing from unhandled exceptions
2023-07-24 21:25:18 -04:00
Ajay
4e93a007c2
Remove unnecessary call in userInfo
2023-07-24 14:55:31 -04:00
Ajay
2fc31655ff
Add different max for private db connection
2023-07-24 13:56:09 -04:00
Ajay
79515ccc8b
Add unlocking to long title error
2023-07-23 23:45:02 -04:00
Ajay
a52ecf2d37
Add more unlock calls
2023-07-23 23:32:38 -04:00
Ajay
8d518b184b
Change default lock timeout
2023-07-23 23:30:17 -04:00
Ajay
3924a65e02
Don't use locks when redis disabled
2023-07-23 23:28:41 -04:00
Ajay
a4de94bede
Remove leftover timeout
2023-07-23 23:28:26 -04:00
Ajay
8bcc781da7
Add locks to different write operations
2023-07-23 23:21:50 -04:00
Ajay
ea80a413ba
Add postgres private db stats
2023-07-23 14:26:25 -04:00
Ajay
0463165f1a
Add timing trace to set username
2023-07-23 14:01:49 -04:00
Ajay
85fc0477ad
Fix type check for warning duplicate
2023-07-17 23:38:52 -04:00
Ajay
a5501b9655
Fix user info not checking warning type
2023-07-17 22:53:12 -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
808066a5ed
Look at -1 votes for branding sb segments
2023-07-17 19:36:58 -04:00
Ajay
93f4cfd82d
Add option to return userID in branding call
2023-07-16 15:35:22 -04:00
Ajay
d030de83bd
Add leaderboard for dearrow
2023-07-07 14:32:45 -04:00
Ajay
d1d2b011f8
Add max title length
2023-07-06 16:36:37 -04:00
Ajay
d2f8e3aee4
Fix shadow hide video branding logic
2023-07-06 14:53:48 -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
5f80562772
Make dearrow verification easier to get
2023-06-28 22:12:32 -04:00
Ajay
69db87f5e1
Fix 0 second submissions not allowed
2023-06-23 23:05:52 -04:00
Ajay
fa6919a1d0
Add branding stats
2023-06-14 19:50:26 -04:00
Ajay
633f128e90
Fix voting on an existing submission not working.
2023-06-13 00:12:16 -04:00
Ajay
9f7fa53b14
Fix sort order
2023-06-12 11:51:17 -04:00
Ajay
bbb7102e37
Derank original submissions
2023-06-12 11:41:57 -04:00
Ajay
3bb8d5b58b
Add verification where new users start with lower votes
2023-06-10 12:35:43 -04:00
Ajay
1cacb2dd69
Fix random time calculator for starting empty segment
2023-06-08 18:22:26 -04:00
Ajay
fe185234cf
Add fallback video duration when finding random timestamp
2023-06-08 18:05:40 -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
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
39fcdb1d95
Allow more chapter names to appear in suggestions
2023-05-21 20:03:53 -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
8db898fab5
Add pool status to branding header
2023-04-10 18:21:52 -04:00
Ajay
940cacfb0a
Add pool details to postgres stats
2023-04-07 15:55:29 -04:00
Ajay
69a54f64b4
More specific redis error
2023-04-07 14:39:38 -04:00
Ajay
9600f56830
Fix 500 in tracing
2023-04-07 14:38:57 -04:00
Ajay
4e59526b4d
Add missing semicolon
2023-04-07 14:31:15 -04:00
Ajay
42f2eb5eae
Add traces to branding endpoint
2023-04-07 14:31:08 -04:00
Ajay
e1a607ba39
Add sb server host as response header
2023-04-07 12:47:08 -04:00
Ajay
8a236d66ed
Fix video labels hash key error
2023-04-05 18:02:47 -04:00
Ajay
4a10faaea3
Add cb tables to db dump
2023-03-31 17:57:56 -04:00
Ajay
589b7d4e3e
Disable branding locks for now
2023-03-31 15:08:28 -04:00
Ajay
a52feee25e
Fix unlocking all submissions
2023-03-31 15:07:34 -04:00
Ajay Ramachandran
d6a12a5e99
Merge pull request #545 from ajayyy/clickbait
...
Clear query cache for branding
2023-03-29 00:33:27 -04:00
Ajay
4696ce8d01
Clear query cache for branding
2023-03-29 00:32:29 -04:00
Ajay Ramachandran
bffc10e38f
Merge pull request #534 from ajayyy/clickbait
...
Clickbait
2023-03-27 00:54:52 -04:00
Ajay
0b830610e9
Fix chapters duplicate check
2023-03-19 00:25:22 -04:00
Ajay
b6e9f92da8
Free chapters
2023-03-18 19:15:50 -04:00
Ajay
d4c4dbffcc
Change video label cache to 3 chars
2023-03-18 00:36:05 -04:00
Michael C
8495a9d6c0
fix unban query hitting limit, use number as type
2023-02-25 00:04:15 -05:00
Ajay Ramachandran
d76ee7cd22
Merge pull request #541 from mchangrh/etagTest
...
add etag and other tests
2023-02-22 01:38:41 -05:00
Michael C
76ce1017ea
add warning webhook
2023-02-22 00:08:27 -05:00
Michael C
780555e9df
add ignores for getTotalStats
2023-02-21 20:16:25 -05:00
Michael C
80de71a68f
add misc 400 tests
2023-02-21 20:09:57 -05:00
Michael C
4b8bc418ba
clean up getCWSUsers
2023-02-21 20:09:38 -05:00
Michael C
900fa9f64e
add test ignores
2023-02-21 17:00:53 -05:00
Michael C
6296761fe4
postSkipSegments improvements
...
- fix 80% check from same user
- split test cases into multiple files for easier viewing
2023-02-21 03:25:46 -05:00
Michael C
c6795a783d
fix getCWS util
2023-02-21 03:24:32 -05:00
Michael C
31a460e750
fix countcontributingusers
2023-02-20 22:56:38 -05:00
Michael C
1bda331b0c
add new CWS user parsing method
2023-02-20 22:22:33 -05:00
Michael C
72fb4eb6ec
add more tests for coverage
2023-02-20 22:22:33 -05:00
Michael C
f70a26009c
add ignore clauses to tests
2023-02-20 22:22:33 -05:00
Ajay Ramachandran
df279cf48a
Adjust ip logging fix threshold
2023-02-20 18:57:19 -05:00
Ajay
19ebca86c9
Fix video branding not being awaited
2023-02-18 02:33:22 -05:00
Ajay Ramachandran
b95b6d8efe
Merge pull request #538 from mchangrh/less-tempvip-perms
...
give less permissions to tempVIPs
2023-02-18 00:10:04 -05:00
Ajay Ramachandran
7985d131ef
Merge pull request #537 from mchangrh/lenientSetUsername
...
make privateIDUsername check more lenient #532
2023-02-18 00:09:37 -05:00
Michael C
a384079562
more lenient privateIDUsername checks
...
- disallow username = privateID
- disallow username = other privateID on username table if length > minLength
2023-02-17 22:28:23 -05:00
Ajay
46c372a764
Unlock other segments when vip votes for new segment
2023-02-14 22:10:46 -05:00
Michael M. Chang
3281954019
Update src/routes/postSkipSegments.ts
...
Co-authored-by: mini-bomba <55105495+mini-bomba@users.noreply.github.com>
2023-02-08 12:21:58 -05:00