Commit graph

790 commits

Author SHA1 Message Date
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
3c79c0f7a8
Remove extra test case 2020-09-16 13:48:54 -04:00
Ajay Ramachandran
abc91cc7a5
Merge pull request #146 from ajayyy/testing
Don't send webhooks for duplicate votes
2020-09-16 09:32:09 -04: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
2955ac3c9b
Merge pull request #145 from ajayyy/testing
Fix removing undo vote
2020-09-15 13:13:16 -04: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
1fe68c66c5
Merge pull request #140 from ajayyy/testing
Testing
2020-09-15 12:50:52 -04: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
4a865c4fb8
Merge pull request #142 from ajayyy/experimental
Don't call webhooks twice
2020-09-13 18:28:41 -04:00
Ajay Ramachandran
70a526fb4f Don't call webhooks twice 2020-09-13 18:27:02 -04:00
Ajay Ramachandran
0839c6b6f9
Merge pull request #81 from andrewzlee/nb-mod-fetch
Add NB to automod process
2020-09-13 11:15:35 -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
928d41c52d
Merge pull request #136 from Joe-Dowd/hash-prefix-db
Hash prefix db
2020-09-11 17:44:48 -04:00
Ajay Ramachandran
fdc20e28ff
Merge pull request #134 from Joe-Dowd/youtube-cache
Youtube cache
2020-09-11 17:37:21 -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
Ajay Ramachandran
9d9cb4f139
Merge pull request #135 from MRuy/checking-categories
Adding check to only allow a list of categories
2020-09-09 20:20:04 -04:00
Joe Dowd
0611ad54d0 fixed db upgrade filesize inflation 2020-09-09 23:14:20 +01:00
Joe Dowd
29a6528e31 Merge branch 'testing' of github.com:ajayyy/SponsorBlockServer into testing 2020-09-09 22:51:05 +01:00
Nanobyte
3bf92fe2ad
Merge pull request #1 from Joe-Dowd/checking-categories
added test for change category
2020-09-09 23:00:29 +02:00
Joe Dowd
a068e194e9 added test for change category 2020-09-09 21:57:59 +01:00
Nanobyte
6485fd0f88 Update test.json 2020-09-09 18:57:47 +02: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