From db92c308fc216049cecd182a2815cf9b04313ec8 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 5 May 2023 14:39:48 -0500 Subject: [PATCH] Rename variable to blockedBySafeSearch --- server/hydrogen-render/render-page-html.js | 2 +- server/routes/room-routes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/hydrogen-render/render-page-html.js b/server/hydrogen-render/render-page-html.js index 6b2a26f..fced81d 100644 --- a/server/hydrogen-render/render-page-html.js +++ b/server/hydrogen-render/render-page-html.js @@ -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 = ``; } diff --git a/server/routes/room-routes.js b/server/routes/room-routes.js index 6eaac61..a0f3989 100644 --- a/server/routes/room-routes.js +++ b/server/routes/room-routes.js @@ -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,