diff --git a/config/production.yaml.example b/config/production.yaml.example index 6a84f2f40..dac39e53e 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -948,7 +948,7 @@ instance: # - 17 # Kids # - 18 # Food - default_client_route: '/videos/trending' + default_client_route: '/videos/browse' # Whether or not the instance is dedicated to NSFW content # Enabling it will allow other administrators to know that you are mainly federating sensitive content diff --git a/packages/tests/src/api/server/config.ts b/packages/tests/src/api/server/config.ts index 19ec1050d..9a0a26ba8 100644 --- a/packages/tests/src/api/server/config.ts +++ b/packages/tests/src/api/server/config.ts @@ -34,7 +34,7 @@ function checkInitialConfig (server: PeerTubeServer, data: CustomConfig) { expect(data.instance.languages).to.have.lengthOf(0) expect(data.instance.categories).to.have.lengthOf(0) - expect(data.instance.defaultClientRoute).to.equal('/videos/trending') + expect(data.instance.defaultClientRoute).to.equal('/videos/browse') expect(data.instance.isNSFW).to.be.false expect(data.instance.defaultNSFWPolicy).to.equal('display') expect(data.instance.customizations.css).to.be.empty diff --git a/packages/tests/src/client/index-html.ts b/packages/tests/src/client/index-html.ts index f7eda2753..eab82809c 100644 --- a/packages/tests/src/client/index-html.ts +++ b/packages/tests/src/client/index-html.ts @@ -47,7 +47,7 @@ describe('Test index HTML generation', function () { it('Should have valid index html tags (title, description...)', async function () { const config = await servers[0].config.getConfig() - const res = await makeHTMLRequest(servers[0].url, '/videos/trending') + const res = await makeHTMLRequest(servers[0].url, '/videos/browse') checkIndexTags(res.text, instanceConfig.name, instanceConfig.shortDescription, '', config) }) @@ -71,14 +71,14 @@ describe('Test index HTML generation', function () { }) const config = await servers[0].config.getConfig() - const res = await makeHTMLRequest(servers[0].url, '/videos/trending') + const res = await makeHTMLRequest(servers[0].url, '/videos/browse') checkIndexTags(res.text, 'PeerTube updated', 'my short description', 'body { background-color: red; }', config) }) it('Should have valid index html updated tags (title, description...)', async function () { const config = await servers[0].config.getConfig() - const res = await makeHTMLRequest(servers[0].url, '/videos/trending') + const res = await makeHTMLRequest(servers[0].url, '/videos/browse') checkIndexTags(res.text, 'PeerTube updated', 'my short description', 'body { background-color: red; }', config) }) diff --git a/packages/tests/src/transcription/whisper/whisper-ctranslate2.spec.ts b/packages/tests/src/transcription/whisper/whisper-ctranslate2.spec.ts index 289372bae..65972f16e 100644 --- a/packages/tests/src/transcription/whisper/whisper-ctranslate2.spec.ts +++ b/packages/tests/src/transcription/whisper/whisper-ctranslate2.spec.ts @@ -93,7 +93,7 @@ describe('Whisper CTranslate2 transcriber', function () { expect(levenshteinDistance( (await transcript.read()).toString(), 'December 1965, is that all it has been since I inherited the world only three years, seems like a hundred million.' - )).to.be.below(5) + )).to.be.below(6) }) it('May transcribe a media file using a local CTranslate2 model', async function () {