diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-10 16:47:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-10 16:47:25 +0100 |
commit | b9da21bd5a3ad00f44997930391e3316182a07db (patch) | |
tree | 7c56d4c2ad2956568b1b0c6622a18636aa9963e8 /server | |
parent | 2af337c83905c420b2d9022ee6fd3d6ef5fd1e42 (diff) | |
download | PeerTube-b9da21bd5a3ad00f44997930391e3316182a07db.tar.gz PeerTube-b9da21bd5a3ad00f44997930391e3316182a07db.tar.zst PeerTube-b9da21bd5a3ad00f44997930391e3316182a07db.zip |
Hide dock if there are no title/description
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/client-html.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts index b8c87e957..7d1d19588 100644 --- a/server/lib/client-html.ts +++ b/server/lib/client-html.ts | |||
@@ -9,7 +9,7 @@ import { | |||
9 | FILES_CONTENT_HASH | 9 | FILES_CONTENT_HASH |
10 | } from '../initializers/constants' | 10 | } from '../initializers/constants' |
11 | import { join } from 'path' | 11 | import { join } from 'path' |
12 | import { escapeHTML, sha256 } from '../helpers/core-utils' | 12 | import { escapeHTML, isTestInstance, sha256 } from '../helpers/core-utils' |
13 | import { VideoModel } from '../models/video/video' | 13 | import { VideoModel } from '../models/video/video' |
14 | import { VideoPlaylistModel } from '../models/video/video-playlist' | 14 | import { VideoPlaylistModel } from '../models/video/video-playlist' |
15 | import validator from 'validator' | 15 | import validator from 'validator' |
@@ -177,7 +177,7 @@ export class ClientHtml { | |||
177 | static async getEmbedHTML () { | 177 | static async getEmbedHTML () { |
178 | const path = ClientHtml.getEmbedPath() | 178 | const path = ClientHtml.getEmbedPath() |
179 | 179 | ||
180 | if (ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] | 180 | if (!isTestInstance() && ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] |
181 | 181 | ||
182 | const buffer = await readFile(path) | 182 | const buffer = await readFile(path) |
183 | 183 | ||
@@ -230,7 +230,7 @@ export class ClientHtml { | |||
230 | 230 | ||
231 | private static async getIndexHTML (req: express.Request, res: express.Response, paramLang?: string) { | 231 | private static async getIndexHTML (req: express.Request, res: express.Response, paramLang?: string) { |
232 | const path = ClientHtml.getIndexPath(req, res, paramLang) | 232 | const path = ClientHtml.getIndexPath(req, res, paramLang) |
233 | if (ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] | 233 | if (!isTestInstance() && ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] |
234 | 234 | ||
235 | const buffer = await readFile(path) | 235 | const buffer = await readFile(path) |
236 | 236 | ||