Rename variable to blockedBySafeSearch
This commit is contained in:
parent
a72160150f
commit
db92c308fc
|
@ -41,7 +41,7 @@ function renderPageHtml({
|
||||||
// We should tell search engines that some pages are NSFW, see
|
// We should tell search engines that some pages are NSFW, see
|
||||||
// https://developers.google.com/search/docs/crawling-indexing/safesearch
|
// https://developers.google.com/search/docs/crawling-indexing/safesearch
|
||||||
let maybeAdultMeta = '';
|
let maybeAdultMeta = '';
|
||||||
if (pageOptions.isNsfw) {
|
if (pageOptions.blockedBySafeSearch) {
|
||||||
maybeAdultMeta = `<meta name="rating" content="adult">`;
|
maybeAdultMeta = `<meta name="rating" content="adult">`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -906,7 +906,7 @@ router.get(
|
||||||
const pageOptions = {
|
const pageOptions = {
|
||||||
title: `${roomData.name} - Matrix Public Archive`,
|
title: `${roomData.name} - Matrix Public Archive`,
|
||||||
description: `View the history of ${roomData.name} in the Matrix Public Archive`,
|
description: `View the history of ${roomData.name} in the Matrix Public Archive`,
|
||||||
isNsfw,
|
blockedBySafeSearch: isNsfw,
|
||||||
entryPoint: 'client/js/entry-client-hydrogen.js',
|
entryPoint: 'client/js/entry-client-hydrogen.js',
|
||||||
locationHref: urlJoin(basePath, req.originalUrl),
|
locationHref: urlJoin(basePath, req.originalUrl),
|
||||||
shouldIndex,
|
shouldIndex,
|
||||||
|
|
Loading…
Reference in New Issue