Commit Graph

394 Commits

Author SHA1 Message Date
TAG-Epic
2c70f87b93 Add webhooks to postSkipSegments 2020-08-24 13:14:04 +02:00
TAG-Epic
aca4318351 Move dispatchEvent to webhookUtils 2020-08-24 09:06:47 +02:00
TAG-Epic
16777c30ca Change .size to .length 2020-08-23 22:35:35 +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
ece475076e Added log colors and method name 2020-08-23 12:35:57 -04:00
Ajay Ramachandran
9cebb8769f Add author name to discord notification 2020-08-23 11:34:07 -04:00
Ajay Ramachandran
0289b71497 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into experimental 2020-08-23 11:21:28 -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
a5cf59d854 improved error handling 2020-08-22 20:39:13 +01:00
Joe Dowd
a971072cb8 reject submissions that have meen marked as invalid by a vip 2020-08-22 04:23:28 +01:00
Joe Dowd
c946d2309e add is VIP endpoint 2020-08-22 03:58:27 +01:00
Joe Dowd
f53c541538 added ability for vips to submit segments not in a video 2020-08-22 03:05:51 +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
2516634856 Don't allow 0 ms submissions 2020-08-02 12:08:44 -04:00
Ajay Ramachandran
d5a720fa0c Check that start time is not less than zero 2020-08-02 11:58:11 -04:00
Joe Dowd
5ac5c30fd6 import config 2020-07-28 04:32:12 +01:00
Ajay Ramachandran
5fc839513e Merge pull request #105 from Joe-Dowd/proxy-submission
Proxy submission
2020-07-27 21:09:32 -04:00
Ajay Ramachandran
7878336866 Don't return after proxying 2020-07-27 20:53:15 -04:00
Ajay Ramachandran
98b79b042b Return when proxying 2020-07-27 19:54:08 -04:00
Ajay Ramachandran
51fe7d5599 Changed to if statement 2020-07-27 19:53:23 -04:00
Joe Dowd
99c8d5d238 removed log and fixed log typo 2020-07-27 05:56:23 +01:00
Joe Dowd
18f5d656de Aded option to proxy submisissions to another server to persist. 2020-07-27 05:51:49 +01:00
Ajay Ramachandran
fe444560fd Fix shadow hidden endpoint 2020-07-26 11:44:15 -04:00
Ajay Ramachandran
986c9dcf5f Don't show banned users on the leaderboard 2020-07-26 11:26:51 -04: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
84c5a76e90 Merge pull request #100 from ajayyy/experimental
Fix weight not updating properly
2020-07-23 23:36:04 -04:00
Ajay Ramachandran
b6dd109fcb Fix weight not properly 2020-07-23 23:34:31 -04:00
Nanobyte
c2e0c1be95 Fixed mixed up category stats 2020-07-17 03:24:53 +02:00
Nanobyte
b41c633a54 Simplified categoryStats query parameter 2020-07-17 00:51:37 +02:00
Nanobyte
1823305a5e Fixed empty array for categoryStats in getTopUsers 2020-07-16 21:53:09 +02:00
Nanobyte
c4f9515c09 Added categoryStats for getTopUsers 2020-07-14 18:15:23 +02:00
Joe-Dowd
13e4adf18f PR comments resolved 2020-07-10 01:46:09 +01:00
Ajay Ramachandran
adbb176697 Merge pull request #93 from ajayyy/experimental
Remove extra power downvote
2020-07-08 23:02:30 -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