Commit Graph

924 Commits

Author SHA1 Message Date
Ajay Ramachandran
10298efc08 Merge pull request #464 from mchangrh/postSkipSegment
update postSkipSegments
2022-04-11 01:56:22 -04:00
Michael M. Chang
b09ed1cbe2 Update src/routes/postSkipSegments.ts
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2022-04-11 01:54:28 -04:00
Michael C
f67c0b5762 merged changes by @mini-bomba 2022-03-31 18:03:42 -04:00
Michael C
d392b1c8fc remove outdated comments & unnecessary space 2022-03-31 16:52:05 -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
Michael C
76cc603a3f update auotmod check
- remove NB code
- reduce complexity + unnecessary iterations
- use client duration if given
2022-03-31 16:02:50 -04:00
Michael C
65a661ca4d fix naming regression, simplify findCategory 2022-03-31 14:19:06 -04:00
Michael M. Chang
2fb7f4faa6 consistent function naming
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2022-03-31 14:05:52 -04:00
Michael C
ed560425a0 removed logging, fixed labelByHash test cases 2022-03-31 14:05:07 -04:00
Michael C
e6bf20937d endpoint + tests for getVideoLabels 2022-03-31 03:47:06 -04:00
Ajay
fe0afd58bc Save userid with votes 2022-03-30 16:02:30 -04:00
Ajay
84ea08d6d0 Fix crash when categories array is broken 2022-03-11 10:19:55 -05:00
Ajay
4029b15233 Add query cache for shadowban 2022-02-21 22:46:13 -05:00
Michael C
4da3c2d049 force poi_highlight to be type POI 2022-02-13 16:13:03 -05:00
Ajay
77a1799a7f Filter input 2022-02-12 13:11:46 -05: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 Ramachandran
bbcbd3783a Merge pull request #449 from mchangrh/fixFullLocks
add full video and exclusive_access support
2022-02-10 22:13:14 -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
f3d10bd19f don't leak adminID on tempVIP 2022-02-03 21:31:43 -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
985039a86b Fix segments always coming back as skip 2022-01-20 19:07:34 -05:00
Michael C
830fdff3be add full video and exclusive_access support 2022-01-19 21:53:40 -05:00
Ajay
d367998d39 Remove use of "CategoryActionType" 2022-01-19 18:11:01 -05:00
Ajay
6ece944536 Highlight category now has it's own action type 2022-01-19 17:48:09 -05:00
Ajay
8759f8dbf2 Use object for merging locks
Co-authored-by: Nishant Arora <whizzzkid@users.noreply.github.com>
2022-01-16 15:17:36 -05:00
Ajay
acb5a9467e Fix warning 2022-01-16 15:03:46 -05:00
Ajay Ramachandran
b39d323a22 Merge pull request #444 from mchangrh/full-tests
Tests for full video locks
2022-01-16 13:17:19 -05:00
Ajay Ramachandran
ea196e84f1 Merge pull request #439 from mchangrh/channelVipTests
additional tests for tempVIP
2022-01-16 12:54:22 -05:00
Ajay
df23d1510d More friendly lock message 2022-01-15 15:41:39 -05:00
Ajay
6fe7200481 don't allow category vote for full video segment 2022-01-14 00:21:13 -05:00
Michael C
6f737ab0b6 minor typo spotted 2022-01-08 17:16:23 -05:00
Michael C
ea4adc0e14 getLockCategories + lint 2022-01-07 18:12:20 -05:00
Michael C
6ec80df8f4 update getLockReason 2022-01-07 03:04:47 -05:00
Michael C
0584492b8c getLockCategories 2022-01-06 23:56:27 -05:00
Ajay Ramachandran
9ca01407e8 Fix typo 2022-01-06 20:26:33 -05:00
Ajay Ramachandran
b2e37804f5 Merge pull request #440 from ajayyy/full-video-labels
Full video labeling
2022-01-06 15:55:11 -05:00
Ajay
c0c2b365ae Fix full video different category duplicate error 2022-01-06 15:17:21 -05:00
Ajay
77565d7eda Fix wrong array being returned for highlight and full video segments 2022-01-06 15:17:01 -05:00
Ajay
75cad434b6 Fix unlocked segments being ignored 2022-01-06 14:58:46 -05:00
Ajay
be441a314f Fix locked segment filtering for highlight and full video 2022-01-06 14:54:27 -05:00
Ajay
d5d73273de Don't autohide full video segments for duration change 2022-01-06 14:45:05 -05:00
Ajay
44ffa40b6c Should not add full segments to db from shadowbanned users 2022-01-06 14:15:50 -05:00