aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/client-html.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/client-html.ts')
-rw-r--r--server/lib/client-html.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts
index 0142b248b..38697401a 100644
--- a/server/lib/client-html.ts
+++ b/server/lib/client-html.ts
@@ -12,7 +12,6 @@ import { HTMLServerConfig } from '@shared/models'
12import { buildFileLocale, getDefaultLocale, is18nLocale, POSSIBLE_LOCALES } from '../../shared/core-utils/i18n/i18n' 12import { buildFileLocale, getDefaultLocale, is18nLocale, POSSIBLE_LOCALES } from '../../shared/core-utils/i18n/i18n'
13import { HttpStatusCode } from '../../shared/models/http/http-error-codes' 13import { HttpStatusCode } from '../../shared/models/http/http-error-codes'
14import { VideoPlaylistPrivacy, VideoPrivacy } from '../../shared/models/videos' 14import { VideoPlaylistPrivacy, VideoPrivacy } from '../../shared/models/videos'
15import { isTestInstance } from '../helpers/core-utils'
16import { logger } from '../helpers/logger' 15import { logger } from '../helpers/logger'
17import { CONFIG } from '../initializers/config' 16import { CONFIG } from '../initializers/config'
18import { 17import {
@@ -231,7 +230,7 @@ class ClientHtml {
231 static async getEmbedHTML () { 230 static async getEmbedHTML () {
232 const path = ClientHtml.getEmbedPath() 231 const path = ClientHtml.getEmbedPath()
233 232
234 if (!isTestInstance() && ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] 233 if (ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path]
235 234
236 const buffer = await readFile(path) 235 const buffer = await readFile(path)
237 const serverConfig = await ServerConfigManager.Instance.getHTMLServerConfig() 236 const serverConfig = await ServerConfigManager.Instance.getHTMLServerConfig()
@@ -303,7 +302,7 @@ class ClientHtml {
303 302
304 private static async getIndexHTML (req: express.Request, res: express.Response, paramLang?: string) { 303 private static async getIndexHTML (req: express.Request, res: express.Response, paramLang?: string) {
305 const path = ClientHtml.getIndexPath(req, res, paramLang) 304 const path = ClientHtml.getIndexPath(req, res, paramLang)
306 if (!isTestInstance() && ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path] 305 if (ClientHtml.htmlCache[path]) return ClientHtml.htmlCache[path]
307 306
308 const buffer = await readFile(path) 307 const buffer = await readFile(path)
309 const serverConfig = await ServerConfigManager.Instance.getHTMLServerConfig() 308 const serverConfig = await ServerConfigManager.Instance.getHTMLServerConfig()