Rename variable to blockedBySafeSearch

This commit is contained in:
Eric Eastwood 2023-05-05 14:39:48 -05:00
parent a72160150f
commit db92c308fc
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ function renderPageHtml({
// We should tell search engines that some pages are NSFW, see
// https://developers.google.com/search/docs/crawling-indexing/safesearch
let maybeAdultMeta = '';
if (pageOptions.isNsfw) {
if (pageOptions.blockedBySafeSearch) {
maybeAdultMeta = `<meta name="rating" content="adult">`;
}

View File

@ -906,7 +906,7 @@ router.get(
const pageOptions = {
title: `${roomData.name} - 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',
locationHref: urlJoin(basePath, req.originalUrl),
shouldIndex,