aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-10 16:47:25 +0100
committerChocobozzz <me@florianbigard.com>2020-11-10 16:47:25 +0100
commitb9da21bd5a3ad00f44997930391e3316182a07db (patch)
tree7c56d4c2ad2956568b1b0c6622a18636aa9963e8 /server/lib
parent2af337c83905c420b2d9022ee6fd3d6ef5fd1e42 (diff)
downloadPeerTube-b9da21bd5a3ad00f44997930391e3316182a07db.tar.gz
PeerTube-b9da21bd5a3ad00f44997930391e3316182a07db.tar.zst
PeerTube-b9da21bd5a3ad00f44997930391e3316182a07db.zip
Hide dock if there are no title/description
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/client-html.ts6
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'
11import { join } from 'path' 11import { join } from 'path'
12import { escapeHTML, sha256 } from '../helpers/core-utils' 12import { escapeHTML, isTestInstance, sha256 } from '../helpers/core-utils'
13import { VideoModel } from '../models/video/video' 13import { VideoModel } from '../models/video/video'
14import { VideoPlaylistModel } from '../models/video/video-playlist' 14import { VideoPlaylistModel } from '../models/video/video-playlist'
15import validator from 'validator' 15import 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