From b9da21bd5a3ad00f44997930391e3316182a07db Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Nov 2020 16:47:25 +0100 Subject: Hide dock if there are no title/description --- server/lib/client-html.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/lib') 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 { FILES_CONTENT_HASH } from '../initializers/constants' import { join } from 'path' -import { escapeHTML, sha256 } from '../helpers/core-utils' +import { escapeHTML, isTestInstance, sha256 } from '../helpers/core-utils' import { VideoModel } from '../models/video/video' import { VideoPlaylistModel } from '../models/video/video-playlist' import validator from 'validator' @@ -177,7 +177,7 @@ export class ClientHtml { static async getEmbedHTML () { const path = ClientHtml.getEmbedPath() - if (ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] + if (!isTestInstance() && ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] const buffer = await readFile(path) @@ -230,7 +230,7 @@ export class ClientHtml { private static async getIndexHTML (req: express.Request, res: express.Response, paramLang?: string) { const path = ClientHtml.getIndexPath(req, res, paramLang) - if (ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] + if (!isTestInstance() && ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] const buffer = await readFile(path) -- cgit v1.2.3