diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-12 11:00:51 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-12 11:00:51 +0100 |
commit | 8db19c959e437521db195e3cce96cb4386ed51c1 (patch) | |
tree | 657fe4eb083bb24acf1aacd2b6a822155ceabb04 /server | |
parent | a7dbc608714ed1981783cd98fd6909866fa78236 (diff) | |
download | PeerTube-8db19c959e437521db195e3cce96cb4386ed51c1.tar.gz PeerTube-8db19c959e437521db195e3cce96cb4386ed51c1.tar.zst PeerTube-8db19c959e437521db195e3cce96cb4386ed51c1.zip |
Remove contributors list from /about/peertube
Some contributors don't want to be associated to a particular peertube
instance
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/client.ts | 6 | ||||
-rw-r--r-- | server/tests/client.ts | 10 |
2 files changed, 0 insertions, 16 deletions
diff --git a/server/controllers/client.ts b/server/controllers/client.ts index 86ac5fbbc..0a27ace76 100644 --- a/server/controllers/client.ts +++ b/server/controllers/client.ts | |||
@@ -84,12 +84,6 @@ clientsRouter.use('/client/*', (req: express.Request, res: express.Response) => | |||
84 | res.status(HttpStatusCode.NOT_FOUND_404).end() | 84 | res.status(HttpStatusCode.NOT_FOUND_404).end() |
85 | }) | 85 | }) |
86 | 86 | ||
87 | // No index exceptions | ||
88 | clientsRouter.all('/about/peertube', | ||
89 | disableRobots, | ||
90 | asyncMiddleware(serveIndexHTML) | ||
91 | ) | ||
92 | |||
93 | // Always serve index client page (the client is a single page application, let it handle routing) | 87 | // Always serve index client page (the client is a single page application, let it handle routing) |
94 | // Try to provide the right language index.html | 88 | // Try to provide the right language index.html |
95 | clientsRouter.use('/(:language)?', asyncMiddleware(serveIndexHTML)) | 89 | clientsRouter.use('/(:language)?', asyncMiddleware(serveIndexHTML)) |
diff --git a/server/tests/client.ts b/server/tests/client.ts index 6c32c81db..a91bec906 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts | |||
@@ -482,16 +482,6 @@ describe('Test a client controllers', function () { | |||
482 | } | 482 | } |
483 | } | 483 | } |
484 | }) | 484 | }) |
485 | |||
486 | it('Should add noindex header for some paths', async function () { | ||
487 | const paths = [ '/about/peertube' ] | ||
488 | |||
489 | for (const path of paths) { | ||
490 | const { headers } = await makeHTMLRequest(servers[0].url, path) | ||
491 | |||
492 | expect(headers['x-robots-tag']).to.equal('noindex') | ||
493 | } | ||
494 | }) | ||
495 | }) | 485 | }) |
496 | 486 | ||
497 | describe('Embed HTML', function () { | 487 | describe('Embed HTML', function () { |