Commit graph

904 commits

Author SHA1 Message Date
Nanobyte
859ad6ea38 Add version to database.json 2021-06-15 17:50:18 +02:00
Ajay Ramachandran
3e73148390
Merge pull request #245 from mchangrh/reconfigure-cors
remove CORS from nginx, add to express
2021-06-15 01:04:26 -04:00
Ajay Ramachandran
eb2b41bc8a
Merge pull request #243 from MRuy/feature/lock-username
Add lock username
2021-06-15 01:04:20 -04:00
Ajay Ramachandran
75981a3e5f
Fix copy mistake 2021-06-15 01:03:37 -04:00
Michael C
062faba8d1
remove CORS from nginx, add to express 2021-06-14 20:29:02 -04:00
Ajay Ramachandran
52f61c08a5
Merge pull request #241 from MRuy/fix/webhook-default-value
Fix webhook default value
2021-06-14 19:51:10 -04:00
Nanobyte
34fd78961b Add username lock 2021-06-15 00:09:37 +02:00
Nanobyte
9cf68b8903 Fix test config adminUserID 2021-06-15 00:08:55 +02:00
Ajay Ramachandran
d0526566c4
Merge pull request #242 from mchangrh/add-delete-cors
add delete to CORS for /api/lockCategories
2021-06-14 16:26:23 -04:00
Ajay Ramachandran
0271556c07 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2021-06-14 22:25:55 +02:00
Ajay Ramachandran
8cce2a5977 Update nginx config 2021-06-14 22:25:24 +02:00
Ajay Ramachandran
e06eb96fa7 Add ability to ban specific category 2021-06-14 16:23:39 -04:00
Michael C
edbbc62e5c
add delete to CORS for /api/lockCategories 2021-06-14 13:19:41 -04:00
Nanobyte
bbd478f322 Fix webhook default value
Added missing property and changed all defaults back to null
2021-06-14 10:47:46 +02:00
Ajay Ramachandran
17eb9604e7 Add banned username 2021-06-13 17:13:44 -04:00
Ajay Ramachandran
588e0abdd8 Fix type = 20 vote 2021-06-13 16:22:10 -04:00
Ajay Ramachandran
b08f5c8390 Don't break for incorrect votes 2021-06-13 16:00:36 -04:00
Ajay Ramachandran
344e680fe3 Fix rejections not being seperated 2021-06-09 15:14:31 -04:00
Ajay Ramachandran
4225d9b3b3 Silently reject votes 2021-06-08 20:20:05 -04:00
Ajay Ramachandran
1c8c76831e Make redis not persist 2021-06-04 16:03:18 -04:00
Ajay Ramachandran
912f878906 Print video ID in newleaf errors 2021-06-03 14:49:01 -04:00
Ajay Ramachandran
ec081cf0c5 Support multiple newleaf urls 2021-06-03 11:38:21 -04:00
Ajay Ramachandran
1e5849f504 Prevent failing on api errors 2021-06-03 11:29:55 -04:00
Ajay Ramachandran
10fcc7885f Raise redis memory 2021-06-03 00:50:05 -04:00
Ajay Ramachandran
29665d5a03
Merge pull request #238 from ajayyy/newleaf
Use newleaf instead of YouTube API
2021-06-02 22:41:06 -04:00
Ajay Ramachandran
e7337d3cb4 Add missing dependency 2021-06-02 22:40:18 -04:00
Ajay Ramachandran
0904036009 Use newleaf instead of YouTube API 2021-06-02 22:34:38 -04:00
Ajay Ramachandran
c1609a826a Don't think duration changed when API fails 2021-06-02 19:17:29 -04:00
Ajay Ramachandran
2453c45b06 Don't use undefined lockedSum from cache 2021-06-01 22:20:42 -04:00
Ajay Ramachandran
63c8f87776 Don't deconstruct 2021-06-01 16:18:41 -04:00
Ajay Ramachandran
f20506bf43 Add back youtube api error handling 2021-06-01 16:14:21 -04:00
Ajay Ramachandran
ec51ff835a Consider locked segments when calculating reputation 2021-05-29 20:48:41 -04:00
Ajay Ramachandran
6a58a08781 Rename user info endpoint 2021-05-24 16:05:18 -04:00
Ajay Ramachandran
3f682d467d Fix reputation unit tests 2021-05-24 16:00:45 -04:00
Ajay Ramachandran
676fc8ea08 Add reputation to user info 2021-05-24 15:56:03 -04:00
Ajay Ramachandran
a732159a3a Fix comment in sql upgrade file 2021-05-24 12:46:39 -04:00
Ajay Ramachandran
09fc3ca882 Raise reputation cap and don't count autovote submissions 2021-05-24 12:43:06 -04:00
Ajay Ramachandran
300ee0183e Add a max initial boost 2021-05-24 10:51:32 -04:00
Ajay Ramachandran
d7f352d699 Revert "Don't get reputation every time"
This reverts commit 994dba86f6.
2021-05-23 23:36:16 -04:00
Ajay Ramachandran
994dba86f6 Don't get reputation every time 2021-05-23 23:30:47 -04:00
Ajay Ramachandran
9990e0b807
Merge pull request #236 from ajayyy/segment-sort
Segment sorting
2021-05-23 23:20:42 -04:00
Ajay Ramachandran
30d0cb7590 Don't break with old cached data 2021-05-23 23:19:39 -04:00
Ajay Ramachandran
52b201ff87 Change to vary boost by votes 2021-05-23 21:43:23 -04:00
Ajay Ramachandran
eb2ffff780 Add tests for reputation 2021-05-23 18:51:23 -04:00
Ajay Ramachandran
d3210d4e27 Move files to utils 2021-05-23 18:00:20 -04:00
Ajay Ramachandran
5c2ab9087a Use reputation when sorting segments 2021-05-23 17:54:51 -04:00
Ajay Ramachandran
194c657ba7 Clear reputation cache 2021-05-23 17:05:06 -04:00
Ajay Ramachandran
a5f9c2a022 Don't allow self votes 2021-05-23 16:57:41 -04:00
Ajay Ramachandran
0051022906 remove old user trustworthy code 2021-05-23 16:55:31 -04:00
Ajay Ramachandran
cfcb6c6b64 Add reputation system 2021-05-23 16:53:35 -04:00