Commit Graph

488 Commits

Author SHA1 Message Date
Ajay Ramachandran
138f843f5d Updated no segments error message 2020-09-19 18:51:13 -04:00
Ajay Ramachandran
689c0f7b31 Allow VIPs to submit locked categories 2020-09-19 13:59:34 -04:00
Ajay Ramachandran
5d731463f2 Change no segments error message 2020-09-19 13:53:40 -04:00
Nanobyte
36f654f41c Blocking users with too many active warnings from submitting votes and submissions 2020-09-16 22:40:11 +02:00
Ajay Ramachandran
211562a0d6 Don't send webhooks for duplicate votes 2020-09-16 09:30:26 -04:00
Joe Dowd
075cb9d5f2 added warning system
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2020-09-16 00:56:10 +02:00
Ajay Ramachandran
a7933c925b Fix removing undo vote 2020-09-15 13:10:55 -04:00
Nanobyte
b52a862f4f Merge branch 'master' into feature/getuserinfo 2020-09-15 19:08:56 +02:00
Ajay Ramachandran
be86f43947 Added default options 2020-09-15 12:22:28 -04:00
Ajay Ramachandran
a86dc0fc7b Changed redis polyfill to not throw an error 2020-09-15 12:16:34 -04:00
Ajay Ramachandran
eaaf3b8812 Add pollyfill for redis set 2020-09-15 12:15:23 -04:00
Ajay Ramachandran
d3463bbef2 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into testing
# Conflicts:
#	src/routes/postSkipSegments.js
#	test/cases/voteOnSponsorTime.js
2020-09-15 11:56:14 -04:00
Nanobyte
43db13ab3f Added getUserInfo endpoint
This endpoint provides the following data about the user:

* userID
* userName
* minutesSaved
* segmentCount
* viewCount
2020-09-14 09:17:35 +02:00
Ajay Ramachandran
70a526fb4f Don't call webhooks twice 2020-09-13 18:27:02 -04:00
Ajay Ramachandran
7a83e7901a Merge pull request #131 from ajayyy/query-by-hash-prefix
Hash prefix fixes
2020-09-11 17:45:58 -04:00
Ajay Ramachandran
0c14560eaa Merge branch 'master' into nb-mod-fetch 2020-09-11 17:32:14 -04:00
Ajay Ramachandran
a49db96d49 Clarify error message 2020-09-11 17:30:54 -04:00
Ajay Ramachandran
66642e7bdf Merge pull request #138 from ajayyy/experimental
Fix error messages in postSkipSegments
2020-09-11 17:22:52 -04:00
Andrew Lee
6843e22a7b Change automod check to call YT and NB API a single time per submission 2020-09-11 17:08:41 -04:00
Ajay Ramachandran
4baf13f82c Fix error messages in postSkipSegments 2020-09-11 16:35:12 -04:00
Ajay Ramachandran
f80e6887fe Merge pull request #137 from ajayyy/experimental
Add error message for 400 errors
2020-09-09 21:36:21 -04:00
Ajay Ramachandran
548061ff13 Add error message for 400 errors 2020-09-09 21:32:47 -04:00
Nanobyte
dec0971c14 Adding check to only allow a list of categories 2020-09-09 16:40:13 +02:00
Joe Dowd
bbe31149b4 cleaner logging 2020-09-08 17:43:51 +01:00
Joe Dowd
b7ea0fa681 remove logging 2020-09-08 17:39:53 +01:00
Joe Dowd
d72a0ca009 Merge branch 'testing' of github.com:ajayyy/SponsorBlockServer into youtube-cache 2020-09-08 17:38:47 +01:00
Joe Dowd
9d94067cd0 Added youtube api cache (optional) 2020-09-08 17:37:29 +01:00
Andrew Lee
137a6dc771 Make db queries one request 2020-09-07 13:16:03 -04:00
Andrew Lee
ce36806169 Added usernames to NB Discord webhooks 2020-09-07 12:29:13 -04:00
Ajay Ramachandran
6fe8dfc188 Merge pull request #133 from ajayyy/experimental
Don't fail when YouTube API fails
2020-09-07 10:25:27 -04:00
Ajay Ramachandran
cb386b7f8d Don't fail when YouTube API fails 2020-09-07 10:23:51 -04:00
Andrew Lee
8b132c37a0 Disable NB automod vote decrease 2020-09-06 21:10:28 -04:00
Andrew Lee
6e8d644574 Removed unnecessary YT API call from NB Discord webhook 2020-09-06 21:08:51 -04:00
Ajay Ramachandran
1536cc085c Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into testing 2020-09-06 13:37:23 -04:00
Ajay Ramachandran
87c7ec405d Merge pull request #132 from ajayyy/experimental
Made report by submitter work for VIPs
2020-09-06 13:37:10 -04:00
Ajay Ramachandran
9bcecae9a2 Made report by submitter work for VIPs 2020-09-06 13:35:14 -04:00
Andrew Lee
fbd8113217 Bug fix automod params 2020-09-05 18:26:20 -04:00
Andrew Lee
66c3109037 Add Discord webhook for videos that fail NB check 2020-09-05 18:07:43 -04:00
Ajay Ramachandran
ac80b2322b Fix broken shadow ban check 2020-09-04 12:16:13 -04:00
Ajay Ramachandran
70632dd33a Merge pull request #127 from Joe-Dowd/query-by-hash-prefix
Query by hash prefix
2020-09-04 11:47:55 -04:00
Ajay Ramachandran
9ee5c508e4 Switch to null instead of undefined and fix indentation 2020-09-03 23:54:43 -04:00
Ajay Ramachandran
008963156d Merge pull request #114 from Joe-Dowd/no-segments
Mark video as containing no segments
2020-09-03 23:42:58 -04:00
Joe Dowd
6abf556234 Merge pull request #5 from ajayyy/testing
Testing
2020-09-03 22:27:18 +01:00
Joe Dowd
75de91ae1c Merge pull request #4 from Joe-Dowd/query-by-hash-prefix
Query by hash prefix
2020-09-03 22:26:46 +01:00
Ajay Ramachandran
dfeb54d7f1 Merge branch 'experimental' of https://github.com/ajayyy/SponsorBlockServer 2020-09-03 12:05:01 -04:00
Ajay Ramachandran
a053d87bd2 Catch user counter errors 2020-09-03 12:04:49 -04:00
Joe Dowd
e33062feeb updated endpoints 2020-09-01 21:37:54 +01:00
Ajay Ramachandran
b0dc79d071 Send max of API users or extension users 2020-08-31 22:17:24 -04:00
Ajay Ramachandran
fd81096f63 Allow all VIP to ban 2020-08-31 14:03:12 -04:00
Joe Dowd
2c32460a6e more tests 2020-08-31 04:17:50 +01:00