Commit Graph

58 Commits

Author SHA1 Message Date
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
dec0971c14 Adding check to only allow a list of categories 2020-09-09 16:40:13 +02:00
Joe Dowd
9d94067cd0 Added youtube api cache (optional) 2020-09-08 17:37:29 +01:00
Joe Dowd
1a06502806 added get segments by hash prefix 2020-08-31 00:45:06 +01:00
Joe Dowd
84533b544a Merge testing & bufgix on logging proxy submissions 2020-08-30 20:37:24 +01:00
Ajay Ramachandran
a161316dc2 Merge pull request #118 from TAG-Epic/custom-webhooks
Add custom webhooks
2020-08-29 19:26:13 -04:00
Ajay Ramachandran
800a3dff9d Send webhooks after response 2020-08-29 19:22:44 -04:00
Ajay Ramachandran
f7bde024cb Allow self-upvotes on dead submissions 2020-08-24 20:21:39 -04:00
TAG-Epic
aca4318351 Move dispatchEvent to webhookUtils 2020-08-24 09:06:47 +02:00
TAG-Epic
a897c313fb Remove broken and unnecessary check 2020-08-23 22:33:06 +02:00
TAG-Epic
9eddc330c5 Move getVoteAuthor to webhookUtils and move user status (api) to webhookUtils 2020-08-23 22:30:35 +02:00
TAG-Epic
20d813d2ea Fix missing semicolon 2020-08-23 22:13:00 +02:00
TAG-Epic
14a990f7ea Remove duplicate isOwnSubmission 2020-08-23 22:09:02 +02:00
TAG-Epic
2597a57f3a Update user status to include self remove 2020-08-23 22:02:34 +02:00
TAG-Epic
7ae97e4c69 Change submission id to UUID 2020-08-23 21:45:39 +02:00
TAG-Epic
e5aa631da0 Refactor custom webhooks 2020-08-23 21:44:50 +02:00
TAG-Epic
77d08d2340 Use logger instead of console.log 2020-08-23 20:05:11 +02:00
TAG-Epic
2ffed72977 Fix merge conflicts 2020-08-23 20:02:18 +02:00
TAG-Epic
81cb93d03e Merge remote-tracking branch 'origin/master' into master 2020-08-23 20:00:59 +02:00
TAG-Epic
f7d162b955 Add custom webhooks for votes 2020-08-23 19:42:52 +02:00
Ajay Ramachandran
9cebb8769f Add author name to discord notification 2020-08-23 11:34:07 -04:00
Joe Dowd
fba25fea0f Update src/routes/voteOnSponsorTime.js
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2020-08-22 20:45:31 +01:00
Joe Dowd
44ea0c418a fixed db update, started no segments 2020-08-22 02:14:19 +01:00
Joe Dowd
16c68dd51d allow removing own segments with a downvote 2020-08-21 22:32:34 +01:00
Joe Dowd
226197a827 Added logger util and used in place of console log 2020-08-21 15:27:41 +01:00
Ajay Ramachandran
4bfa5e7de8 Banned users can't vote 2020-07-26 11:13:36 -04:00
Ajay Ramachandran
15fb572b80 Added IP test and potentially improved performance 2020-07-25 21:40:49 -04:00
Ajay Ramachandran
e71680c8e3 Block voting without submitting and on the same IP 2020-07-25 21:35:43 -04:00
Ajay Ramachandran
005e88d169 Merge pull request #92 from Joe-Dowd/mysql-conv
Added ability to query a mysql database
2020-07-25 19:01:57 -04:00
Ajay Ramachandran
347f2ab1e1 Remove extra power downvote 2020-07-08 22:46:32 -04:00
Joe-Dowd
46dd16caf9 added ability to query mysql database 2020-07-05 04:14:15 +01:00
Ajay Ramachandran
aa4574cfde Add category to notification 2020-06-02 19:28:09 -04:00
Ajay Ramachandran
34a33bbda1 Fixed voting on non existent submission status in wrong spot 2020-05-16 16:41:55 -04:00
Ajay Ramachandran
261432a7fd Fix isUserTrustworthy missing from voting method 2020-05-16 16:40:18 -04:00
Ajay Ramachandran
06d1c082fb Fix issues with userID getting in voting 2020-05-16 00:42:38 -04:00
Ajay Ramachandran
7f07794ce4 Removed null coalescence operator 2020-05-16 00:15:33 -04:00
Ajay Ramachandran
7b31c40676 Prevent userID errors 2020-05-16 00:12:31 -04:00
Ajay Ramachandran
0060b5e5af Prevent crash when category-voting on invalid UUID 2020-05-11 18:07:57 -04:00
Ajay Ramachandran
b2705dfb2d Prevented upvotes on "dead" submissions unless they are VIP. 2020-05-10 00:08:05 -04:00
Ajay Ramachandran
6a17e4d141 Added test cases for voting and fixed code to support them. 2020-04-29 22:15:16 -04:00
Ajay Ramachandran
ad169fd6e7 Added VIP support to category vote 2020-04-29 21:30:07 -04:00
Ajay Ramachandran
f23ead56ad Updated inserts to new database schema and removed null coalescing 2020-04-29 21:26:11 -04:00
Ajay Ramachandran
98f4d973e7 Added wrong category vote option. 2020-04-29 20:56:34 -04:00
Ajay Ramachandran
cb2b0aabf3 Merge branch 'testing' of https://github.com/ajayyy/SponsorBlockServer into new-vote-options
# Conflicts:
#	src/routes/voteOnSponsorTime.js
2020-04-29 19:58:19 -04:00
Ajay Ramachandran
e27ef39dcf Remove unused function 2020-04-29 18:26:05 -04:00
Joe-Dowd
d930853edf review changes 2020-04-29 22:27:38 +01:00
Joe-Dowd
e9e525ec63 fixed formatting 2020-04-28 05:18:54 +01:00
Joe-Dowd
13aee13f18 Improved phrasing of error responses \n removed debug logs 2020-04-28 05:10:55 +01:00
Joe-Dowd
f6df7e5f6f remove testing logs 2020-04-28 05:07:39 +01:00
Joe-Dowd
cfa80be4c7 add user history to discord notification on segment reporting 2020-04-28 05:04:51 +01:00