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
Michael C
6caab2ef06
don't destructure and re-structure
2021-10-19 23:23:58 -04:00
Michael C
a316403bb5
quote for postgres
2021-10-19 23:22:13 -04:00
Michael C
5cf7a61de1
restructure for postgres
2021-10-19 23:14:52 -04:00
Michael C
d0deb6fe27
finish tests and remove extra console.logs
2021-10-19 23:06:47 -04:00
Michael C
4ee35d3cd4
implementation
2021-10-19 22:05:08 -04:00
Michael C
83b8127eb2
fix fragment in links
2021-10-19 03:52:24 -04:00
Ajay Ramachandran
a42e933240
Send webhook link with required segment
2021-10-18 20:02:17 -04:00
Ajay Ramachandran
7e23bc9eeb
Check for service in category vote
2021-10-03 13:12:14 -04:00
Ajay Ramachandran
658e391f50
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into pr/FlorianZahn/376
2021-10-03 13:11:25 -04:00
FlorianZahn
0aa286442f
Vip locked segment voting, handle client side
...
Co-authored-by: Ajay Ramachandran <dev@ajay.app >
2021-10-03 18:53:06 +02:00
FlorianZahn
7135aa3369
removing console.log() commands
2021-10-02 05:11:26 +02:00
FlorianZahn
aacd297b3b
Fixed bugs where normal users could cirumvent vip locks by changing categories
2021-10-02 05:04:18 +02:00
FlorianZahn
bb2a007ed1
first changes and timeout on 2nd test
2021-10-02 04:39:54 +02:00
Haidang666
356974b478
add service to table only have videoID
2021-09-30 13:56:55 +07:00
Michael C
82c5c70eb7
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into switch-axios
2021-09-26 18:13:27 -04:00
Michael C
6433f50edf
replace node-fetch with axios in src
2021-09-23 01:21:10 -04:00
Michael C
a028eaa41a
object-curly-spacing
2021-09-22 18:52:35 -04:00
Ajay Ramachandran
d6a986d6cf
Disable shadow hidden when vip upvotes
2021-09-01 15:28:39 -04:00
Michael C
9f7abf1865
Revert "fix error with errors"
...
This reverts commit 7601a1d4bf .
2021-08-28 01:53:53 -04:00