133 Commits

Author SHA1 Message Date
Ajay Ramachandran
d0757ec17b Made shadow hidden submissions count as downvoted submissions. 2019-09-16 17:07:33 -04:00
Ajay Ramachandran
fa58e786d2 Added trustworthy check function and made it possible to get unshadowbanned. 2019-09-16 16:51:55 -04:00
Ajay Ramachandran
ef5c6fddec Changed shadowHidden to 1 instead of true in the new function. 2019-09-11 15:00:35 -04:00
Ajay Ramachandran
1b53b3c993 Made untrustworthy users have hidden submissions. 2019-09-11 14:57:03 -04:00
Ajay Ramachandran
662dcf430a Changed endpoint to post for shadowBanUser. 2019-09-10 23:18:57 -04:00
Ajay Ramachandran
c924be4dc9 Changed shadow ban user endpoint to use new naming scheme 2019-09-04 22:07:23 -04:00
Ajay Ramachandran
991f155aca Made it so that VIP users start with votes after a submission. 2019-09-04 21:39:21 -04:00
Ajay Ramachandran
9ed48b1bfc Made VIP downvote count for more.
Also made it save when there is a "super downvote" to properly reverse it later.
2019-09-04 21:34:39 -04:00
Ajay Ramachandran
83c3a35ce4 Added vip addition endpoint. 2019-09-04 14:44:55 -04:00
Ajay Ramachandran
ff0b661f26 Added port to config 2019-09-04 13:41:07 -04:00
Ajay Ramachandran
347ae87b12 Added config file. 2019-09-04 13:18:47 -04:00
Ajay Ramachandran
b4c3edcd59 Allowed set username to be used by the admin to change any username. 2019-09-03 19:27:02 -04:00
Ajay Ramachandran
705a3c39da Added days saved stat. 2019-09-01 22:36:20 -04:00
Ajay Ramachandran
cd29ce1ca3 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into experimental
# Conflicts:
#	index.js
2019-08-24 17:05:10 -04:00
Ajay Ramachandran
d79921f2d6 Added shadow banning and unshadow banning users. 2019-08-24 16:24:39 -04:00
Ajay Ramachandran
1b4767cd38 Locked the username for undefined. 2019-08-22 16:15:13 -04:00
Ajay Ramachandran
58d3699a06 Fixed includes check 2019-08-22 14:18:31 -04:00
Ajay Ramachandran
49af7dd65d Added new shadowHidden variable that only lets it get sent out to submitters. 2019-08-22 00:01:27 -04:00
Ajay Ramachandran
69258587bc Raised stats limit to 100. 2019-08-19 20:42:25 -04:00
Ajay Ramachandran
9742129547 Merge pull request #21 from ajayyy/experimental
Fixed duplicate vote check being broken
2019-08-19 15:53:50 -04:00
Ajay Ramachandran
db1a3a4062 Fixed duplicate vote check being broken. 2019-08-19 15:53:31 -04:00
Ajay Ramachandran
3007c8db0e Merge pull request #20 from ajayyy/experimental
Made downvote more powerful if there are some views or votes already
2019-08-18 17:57:32 -04:00
Ajay Ramachandran
a0bbffaf91 Made downvote more powerful if there are some views or votes already. 2019-08-18 17:57:13 -04:00
Ajay Ramachandran
0072cdb17b Merge pull request #18 from ajayyy/experimental
Username support
2019-08-12 23:43:17 -04:00
Ajay Ramachandran
6b88719cf6 Reverted postVideoSponsors back to get method 2019-08-12 23:43:05 -04:00
Ajay Ramachandran
4079419fa8 Added API endpoint to get the username 2019-08-12 23:31:44 -04:00
Ajay Ramachandran
dc33bc33d6 Added ability to set a username that is used when returning the stats. 2019-08-12 23:20:56 -04:00
Ajay Ramachandran
d94c2bdf95 Removed unnecessary comment 2019-08-12 13:19:56 -04:00
Ajay Ramachandran
db4ddb0b8b Made low voted submissions not count in the stats 2019-08-12 12:42:27 -04:00
Ajay Ramachandran
073717cd1f Raised per user sponsor limit to 8 2019-08-12 12:34:51 -04:00
Ajay Ramachandran
6df7eed22a Added user count to stats 2019-08-03 15:10:04 -04:00
Ajay Ramachandran
463a48f33a Added totals api endpoint 2019-08-03 12:04:22 -04:00
Ajay Ramachandran
580a9d9eba Raised stats limit to 50 2019-08-03 00:23:43 -04:00
Ajay Ramachandran
4dca4081c1 Added api endpoint to get the top users 2019-08-03 00:13:21 -04:00
Ajay Ramachandran
c9ccc409a3 Merge pull request #10 from OfficialNoob/patch-1
Added hash function and BehindProxy bool
2019-07-31 23:36:12 -04:00
Ajay Ramachandran
d5d33f0e9b Reformatted and fixed missing parameters. 2019-07-31 23:32:25 -04:00
Ajay Ramachandran
f5794f1fc3 Raised cutoff due to low amount of users. 2019-07-30 19:31:56 -04:00
Official Noob
c67fb34588 Removed uuidv1 and added GetIP() 2019-07-30 18:43:23 +01:00
Official Noob
af1ae4346f Added hash function and BehindProxy bool 2019-07-30 18:14:25 +01:00
Ajay Ramachandran
4e732b6367 Made votes anonymous. 2019-07-28 23:00:54 -04:00
Ajay Ramachandran
3720681f84 Made IP addresses private. 2019-07-28 22:58:20 -04:00
Ajay Ramachandran
dadbf8026e Fixed NaN check not correct. 2019-07-28 16:05:23 -04:00
Ajay Ramachandran
fd6071f8d6 Removed extra comment. 2019-07-26 17:15:42 -04:00
Ajay Ramachandran
4379660b01 Fixed NaN crashing the server. 2019-07-26 15:20:34 -04:00
Ajay Ramachandran
abfbba2ad0 Fixed server crash. 2019-07-25 16:56:06 -04:00
Ajay Ramachandran
7e041e5b49 Prevented backwards sponsor times. 2019-07-25 16:54:43 -04:00
Ajay Ramachandran
d7dec47de7 Made the UUID a hash of the input instead of random. 2019-07-25 16:48:13 -04:00
Ajay Ramachandran
71527cc4b1 Switched back to sha256, sha512 is just too long. 2019-07-25 16:36:53 -04:00
Ajay Ramachandran
5fbe580c08 Hash the userIDs 2019-07-25 16:35:08 -04:00
Ajay Ramachandran
ab0631ff63 Prevented sponsor segments less than 1 seconds from being submitted. 2019-07-23 19:06:43 -04:00