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 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
a52ecf2d37
Add more unlock calls
2023-07-23 23:32:38 -04:00
Ajay
8bcc781da7
Add locks to different write operations
2023-07-23 23:21: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
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
6448fbfbd8
Fix logger calls where this will be wrong
2023-02-05 13:27:18 -05:00
Michael C
2683c61995
add minUserIDLength config option
2022-12-17 23:35:13 -05:00
mini-bomba
ceaf9ec6f6
Fix linter warning
2022-10-08 09:09:19 +02:00
mini-bomba
d229003f6e
Unlock the video on duration change detected when voting
2022-10-08 09:08:40 +02:00
mini-bomba
1becebdcd5
Actually pass the ignoreCache param, as the comment suggests
2022-10-08 09:04:37 +02:00
Ajay Ramachandran
ada32217d9
Merge pull request #503 from mchangrh/innerTubeDuration
...
add innerTube API, types and tests
2022-09-29 16:45:55 -04:00
Michael C
62a9b0eddd
add innerTube as primary videoInfo endpoint
...
- drop videoInfo.genreUrl since it's always empty
- bump ts target to ES2021 for Promise.any
- fix mocks to return err: false
- get maxResThumbnail from static endpoint
2022-09-15 17:02:33 -04:00
Ajay
2ecf4b3a9b
Fix category votes to use category support to judge when not allowed
2022-09-12 10:59:26 -04:00
Ajay
bd7dfc63ff
Add eslint rules for dealing with promises
2022-09-07 20:01:11 -04:00
Ajay
08ab7e816d
Restrict changing chapters category
2022-09-02 17:48:47 -04:00
Ajay
f1ed8eff84
Fix useReplica change breaking voting
2022-07-20 00:43:59 -04:00
Ajay
1e441c3ebf
Only use read replica for shorter queries
...
Help with https://github.com/ajayyy/SponsorBlockServer/issues/487
2022-07-20 00:40:07 -04:00
mini-bomba
9c0f0d8e4f
voteOnSponsorTime: simplify currentCategoryCount computation in categoryVote
2022-07-14 20:28:45 +02:00
mini-bomba
f24a1415da
voteOnSponsorTime: check for VIP/ownSubmission before doing math in categoryVote
2022-07-14 20:24:22 +02:00
mini-bomba
70c98e0819
voteOnSponsorTime: add ban check to categoryVote
2022-07-14 20:22:44 +02:00
mini-bomba
39ad5fb62a
voteOnSponsorTime: move warning check before call to categoryVote
2022-07-14 20:13:47 +02:00
Ajay
adca0256a0
Fix voting insert with postgres
2022-07-05 19:30:45 -04:00
Ajay
f9de547b95
Add malicious vote type for chapters
2022-07-04 16:18:58 -04:00
Ajay
2d6be12062
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-04-11 23:48:54 -04:00
Ajay
14ef6682df
Log locked downvoted segment
2022-04-11 23:48:52 -04:00
Ajay Ramachandran
10298efc08
Merge pull request #464 from mchangrh/postSkipSegment
...
update postSkipSegments
2022-04-11 01:56:22 -04:00
Michael C
d02d78f325
add 80% tempVIP
...
- move isUserTempVIP to own file
- reduce allSegmentDuration instead of forEach
- don't return decreaseVotes from autoModerator
- completely skip autoModCheck if VIP
2022-03-31 16:43:10 -04:00
mini-bomba
6b5dc54cc7
voteOnSponsorTime.ts: don't do database queries for vote eligibility on locked segments
2022-03-31 22:41:09 +02:00
Ajay
fe0afd58bc
Save userid with votes
2022-03-30 16:02:30 -04:00
Ajay
c9b18a4938
Don't fail if no latest submission with video duration
2022-02-12 00:06:46 -05:00
Ajay
155c5a9b97
Don't allow upvoting dead locked category segment
...
for full video
2022-02-12 00:05:01 -05:00
Ajay
1bc9a69b79
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
2022-02-11 12:06:33 -05:00
Ajay
fb6e98f93f
Don't allow changing highlight category
2022-02-11 12:05:04 -05:00
Ajay Ramachandran
de7b985535
Merge branch 'master' into voteOnSponsorTime
2022-02-10 23:00:51 -05:00
Ajay
50fab971e0
Temp vip fix
2022-02-10 19:42:08 -05:00
Michael C
df6c76ede9
quote for postgres
2022-02-04 00:43:20 -05:00
Michael C
5713b96d13
add test for downvote videoDuration change
2022-02-04 00:21:15 -05:00
Michael C
a2f2cf9c0d
update lockCategories
...
- migration to remove invalid locks
- lockCategories poi_highlight is now actionType poi
- deleteLockCategories now takes actionType
- update postLockCategories response, serverside filtering for accepted categories
- fix tests accordingly
2022-02-03 17:44:29 -05:00
Michael C
0854ad1f65
rewrite voteOnSponsorTimes
2022-02-03 06:06:54 -05:00
Ajay
d367998d39
Remove use of "CategoryActionType"
2022-01-19 18:11:01 -05:00
Ajay
acb5a9467e
Fix warning
2022-01-16 15:03:46 -05:00
Ajay
6fe7200481
don't allow category vote for full video segment
2022-01-14 00:21:13 -05:00
Ajay
65954520d0
Treat duplicate full video submission as upvote
2022-01-06 03:39:46 -05:00
Michael C
a1d28fbfe1
add addUserAsTempVIP
2021-12-31 04:26:37 -05:00
Michael C
9ae16ea9b6
add tempVIP check to vote
2021-12-30 22:21:27 -05:00
Michael C
a5a90e3c84
add getHashCache where applicable=
2021-11-27 02:41:34 -05:00
Michael C
03c95ca158
rename clearSegmentCache
2021-11-15 01:48:14 -05:00
Ajay Ramachandran
93536976d0
Merge pull request #385 from mchangrh/384-fix
...
Implement #384
2021-10-19 23:30:09 -04:00