Commit graph

690 commits

Author SHA1 Message Date
Ajay Ramachandran
262d3d3dfd Add username length limit 2020-08-29 20:05:49 -04:00
Ajay Ramachandran
49cfbdd95f Lower minimum votes to 20 2020-08-29 20:02:32 -04: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
0872c727d5 Fix auto moderate merge issues 2020-08-29 18:58:52 -04:00
Andrew Lee
d965308346 Merge fixes to nb automod and api change 2020-08-29 18:23:04 -04:00
Andrew Lee
4ffb1e0cdc Merge branch 'nb-mod-fetch' of https://github.com/andrewzlee/SponsorBlockServer into nb-mod-fetch 2020-08-29 17:48:44 -04:00
Andrew Lee
8fc1fe7d8e Re-add node-fetch package 2020-08-29 17:48:39 -04:00
Andrew Lee
c6d28d7fc5
Apply suggestions from code review
Fix syntax changes caused by bad merge

Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2020-08-29 17:45:59 -04:00
Ajay Ramachandran
373548d396
Remove unused variable 2020-08-29 17:39:08 -04:00
Andrew Lee
f1c520fbe8 Merge branch 'master' into nb-mod-fetch 2020-08-29 16:37:20 -04:00
Ajay Ramachandran
a1babfb2ce Lower vote threshold 2020-08-29 15:48:31 -04:00
Ajay Ramachandran
407c38b4be Hostfix basic ip ban 2020-08-29 14:00:15 -04:00
Ajay Ramachandran
f868939eb9 Remove dead submissions from total stats 2020-08-29 12:43:17 -04:00
Ajay Ramachandran
84b143545d Fix function name 2020-08-29 12:35:24 -04:00
Ajay Ramachandran
938d88fa2b Merge branch 'experimental' of https://github.com/ajayyy/SponsorBlockServer 2020-08-29 12:26:02 -04:00
Ajay Ramachandran
67951b39d9 Change vote and username requirements 2020-08-29 12:25:35 -04:00
Ajay Ramachandran
4b5a0fb59d
Merge pull request #120 from ajayyy/experimental
New vote weight
2020-08-24 20:56:55 -04:00
Ajay Ramachandran
19363c86f9 New vote weight 2020-08-24 20:51:04 -04:00
Ajay Ramachandran
c7daa72b4e
Merge pull request #119 from ajayyy/experimental
Added decimals to formatted time
2020-08-24 20:23:17 -04:00
Ajay Ramachandran
f7bde024cb Allow self-upvotes on dead submissions 2020-08-24 20:21:39 -04:00
Ajay Ramachandran
f4b36867ff Fixed duplicate variable 2020-08-24 20:15:46 -04:00
Ajay Ramachandran
2f2273b8a8 Added decimals to formatted time 2020-08-24 20:12:57 -04:00
Epic
f7ea7061d6
Merge pull request #4 from Joe-Dowd/testing-custom-webhooks
Fixed undesolved test error
2020-08-24 23:52:00 +02:00
Joe Dowd
83ec23220c added wrong port test 2020-08-24 22:50:27 +01:00
Joe Dowd
dc7dadd9a1 tidy undesolved fix 2020-08-24 22:43:36 +01:00
Joe Dowd
3563924c6f Fixed undesolved test error 2020-08-24 22:40:02 +01:00
Epic
ec1a294ef0
Merge pull request #3 from Joe-Dowd/testing-custom-webhooks
add unresolvable host test - introduces tets faiulure
2020-08-24 23:32:40 +02:00
Joe Dowd
eb9282c60a add unresolvable host test - introduces tets faiulure 2020-08-24 22:22:02 +01:00
Epic
2dc5dea10b
Merge pull request #2 from Joe-Dowd/testing-custom-webhooks
added failed webhook call to tests
2020-08-24 23:14:45 +02:00
Joe Dowd
3066a077c7 added failed webhook call to tests 2020-08-24 22:10:49 +01:00
Epic
72b317352f
Merge pull request #1 from Joe-Dowd/testing-custom-webhooks
make tests hit webhook code
2020-08-24 23:06:55 +02:00
Joe Dowd
75a62a5729 make tests hit webhook code 2020-08-24 22:04:18 +01:00
TAG-Epic
3085b0e30c Remove random s 2020-08-24 22:45:47 +02:00
TAG-Epic
5c9aa8c9ca Cleaned up function names 2020-08-24 13:59:13 +02:00
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
a268f9a892 Update example & test config 2020-08-23 20:54:18 +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