Commit graph

2351 commits

Author SHA1 Message Date
Ajay
c313590d36 persona's revenge 2024-09-13 21:51:06 -04:00
Ajay
4508ad11f2 Fix error when submitter ip not found 2024-09-13 14:37:37 -04:00
Ajay
dc5158257e Fix errors when postgres returns undefined and trying to save to redis 2024-09-13 14:36:52 -04:00
Ajay
6edd71194b Log redis stats on high db load 2024-09-13 14:29:32 -04:00
Ajay
7678be1e24 Add max redis response time for reads 2024-09-13 04:06:50 -04:00
Ajay
d28ac39d4f Allow newly used header 2024-09-07 23:31:16 -04:00
Ajay
5fd6b5eb8b Fix canSubmitOriginal query on postgres 2024-09-01 19:29:08 -04:00
Ajay
0e1a38c4d4 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2024-09-01 19:01:00 -04:00
Ajay
c496be5651 Disable innertube tests while they are broken 2024-09-01 19:00:59 -04:00
Ajay Ramachandran
15a9c3a4eb
Merge pull request #583 from ajayyy/dependabot/npm_and_yarn/braces-3.0.3
Bump braces from 3.0.2 to 3.0.3
2024-09-01 18:57:32 -04:00
Ajay Ramachandran
f1ebd56526
Merge pull request #590 from ajayyy/dependabot/npm_and_yarn/axios-1.7.7
Bump axios from 1.6.0 to 1.7.7
2024-09-01 18:57:18 -04:00
Ajay
258749ac31 Add more strict requirements for voting for original thumbnails 2024-09-01 18:56:29 -04:00
dependabot[bot]
ccccb1af3c
Bump axios from 1.6.0 to 1.7.7
Bumps [axios](https://github.com/axios/axios) from 1.6.0 to 1.7.7.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.0...v1.7.7)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-01 22:43:59 +00:00
Ajay
13b8a988db update dep 2024-09-01 18:43:28 -04:00
Ajay
803fc18554 Verify old submissions right after someone votes on it 2024-08-16 00:36:42 -04:00
Ajay
59373cf346 Fix rejected server-side rendered ads issue not rejecting 2024-08-14 23:42:47 -04:00
Ajay
05fd6abe91 Use env vars in workflow 2024-08-12 01:04:12 -04:00
Ajay
090e185765 Add support for poToken and visitor data
Fixes api requests

https://github.com/iv-org/invidious/pull/4789
2024-08-12 00:33:11 -04:00
Ajay
d2df5cef98 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2024-08-11 13:49:48 -04:00
Ajay
214946897d Hardcode nn-block reputation 2024-08-11 13:49:46 -04:00
Ajay Ramachandran
8da5de4d7b
Merge pull request #588 from mini-bomba/dearrow-locked-titles-downvotes
postBranding.ts webhook changes
2024-08-04 09:38:24 +02:00
mini-bomba
380ec8d0ca
Reformat SQL code in postBranding.ts webhook code 2024-08-03 22:01:46 +02:00
mini-bomba
72086b0195
Send webhook messages when a locked title is downvoted
also take downvotes & verification into consideration when comparing
titles in webhook code
2024-08-03 21:56:31 +02:00
mini-bomba
61dcfeb69f
Don't send to #dearrow-locked-titles when downvoting unlocked title
voteType passed to sendWebhooks() function to avoid confusion in the
future should someone forget about the if statement
2024-08-03 21:39:21 +02:00
Ajay Ramachandran
19d6d85aa6
Merge pull request #589 from mini-bomba/tests-fix
fix postgres+redis tests
2024-08-03 21:32:18 +02:00
mini-bomba
814ceb56f1
fix postgres+redis tests
made on request
https://discord.com/channels/603643120093233162/607338052221665320/1269373542550470730
2024-08-03 21:23:44 +02:00
Ajay Ramachandran
195cc14d25
Merge pull request #585 from mini-bomba/unrelated_chapter_suggestions
Don't show completely unrelated chapter suggestions
2024-08-03 21:19:59 +02:00
Ajay Ramachandran
9427bf4f3d
Merge pull request #586 from TristanWasTaken/db-schema
docs: fix typos in DatabaseSchema.md
2024-08-03 08:00:47 +02:00
mini-bomba
3f026409cd
Don't show completely unrelated chapter suggestions
Chapter suggestions should be at least slightly related to what the user
has already typed.
This change stops the server from sending suggestions that postgresql
deems to be "less than 10% similar"

Also modified tests to reflect this change.
2024-07-29 02:26:53 +02:00
Ajay
d75b9ddcaa Show failure reason in webook 2024-07-24 13:42:40 -04:00
Ajay
2fb3d05055 private video? 2024-07-24 13:06:19 -04:00
Ajay
165ed8a6e0 Fix original thumbnail votes being shown because of fetch all 2024-07-09 19:49:37 -04:00
Ajay
495b8031e3 Add better logging for failed reputation call 2024-06-30 09:40:25 -04:00
Ajay
738f863581 Don't send server-side render error for title submissions 2024-06-25 14:36:05 +05:30
Tristan
8b5e69f36f docs: fix typos in DatabaseSchema.md 2024-06-24 03:14:05 +02:00
Ajay
10e37824d8 Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer 2024-06-21 15:43:30 +05:30
Ajay
428343e7d8 Require a vote for original to show 2024-06-21 15:43:26 +05:30
Ajay Ramachandran
4e69ac60bc
Merge pull request #584 from TristanWasTaken/db
docs: update DatabaseSchema.md
2024-06-21 09:00:52 +05:30
Tristan
3b03792903 docs: fix userFeatures md list 2024-06-21 03:17:31 +02:00
Tristan
1a0b6ab097 Update DatabaseSchema.md 2024-06-21 03:15:07 +02:00
Tristan
8e5084cd72 docs: update private schemas 2024-06-21 03:11:28 +02:00
Tristan
96feaf3cbe docs: update public schemas 2024-06-21 03:08:38 +02:00
Tristan
d08cfee5b4 docs: update private indexes 2024-06-21 01:35:38 +02:00
Tristan
96dd9eceb3 docs: update public indexes 2024-06-21 01:34:25 +02:00
Tristan
4422104294 docs: format lists 2024-06-21 01:34:15 +02:00
Tristan
4ad553478b chore: fix misleading/unclear migration comments 2024-06-21 00:50:10 +02:00
dependabot[bot]
47323156c1
Bump braces from 3.0.2 to 3.0.3
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-16 11:24:49 +00:00
Ajay
a181d52fb2 Fix types 2024-06-12 12:01:40 +05:30
Ajay
ee9ed6af1f Add server-side ads check for dearrow submissions 2024-06-12 11:57:59 +05:30
Ajay
ec1e6d63a4 Add protection against server-side ad injection (SSAP) 2024-06-12 09:55:41 +05:30