1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Reduce video comment sql query size

This commit is contained in:
Chocobozzz 2023-10-31 10:02:19 +01:00
parent 2e556debca
commit 443358ccce
No known key found for this signature in database
GPG key ID: 583A612D890159BE
10 changed files with 55 additions and 15 deletions

View file

@ -352,13 +352,18 @@ describe('Object storage for video static file privacy', function () {
await makeRawRequest({ url, token: server.accessToken, expectedStatus: HttpStatusCode.OK_200 })
await makeRawRequest({ url, query: { videoFileToken: fileToken }, expectedStatus: HttpStatusCode.OK_200 })
if (videoPassword) {
await makeRawRequest({ url, headers: { 'x-peertube-video-password': videoPassword }, expectedStatus: HttpStatusCode.OK_200 })
}
await makeRawRequest({ url, token: userToken, expectedStatus: HttpStatusCode.FORBIDDEN_403 })
await makeRawRequest({ url, expectedStatus: HttpStatusCode.FORBIDDEN_403 })
await makeRawRequest({ url, query: { videoFileToken: unrelatedFileToken }, expectedStatus: HttpStatusCode.FORBIDDEN_403 })
if (videoPassword) {
await makeRawRequest({
url,
headers: { 'x-peertube-video-password': videoPassword },
expectedStatus: HttpStatusCode.OK_200
})
await makeRawRequest({
url,
headers: { 'x-peertube-video-password': 'incorrectPassword' },