aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
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