1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Use indexifembedded for embeds

This commit is contained in:
Chocobozzz 2025-03-31 16:34:41 +02:00
parent 5ce0b0f65d
commit f0f44e1704
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 56 additions and 48 deletions

View file

@ -21,7 +21,6 @@ import { ServerConfigManager } from '../../server-config-manager.js'
import { TagsHtml } from './tags-html.js'
export class PageHtml {
private static htmlCache: { [path: string]: string } = {}
static invalidateCache () {
@ -60,6 +59,7 @@ export class PageHtml {
ogType: 'website',
twitterCard: 'summary_large_image',
forbidIndexation: false,
embedIndexation: false,
rssFeeds: getDefaultRSSFeeds(WEBSERVER.URL, CONFIG.INSTANCE.NAME)
}, {})
@ -132,7 +132,6 @@ export class PageHtml {
sameSite: 'none',
maxAge: 1000 * 3600 * 24 * 90 // 3 months
})
} else if (req.cookies.clientLanguage && is18nLocale(req.cookies.clientLanguage)) {
lang = req.cookies.clientLanguage
} else {
@ -140,7 +139,8 @@ export class PageHtml {
}
logger.debug(
'Serving %s HTML language', buildFileLocale(lang),
'Serving %s HTML language',
buildFileLocale(lang),
{ cookie: req.cookies?.clientLanguage, paramLang, acceptLanguage: req.headers['accept-language'] }
)