From fe1601608d2540e2994375035fa042bb9b385dba Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 3 Aug 2025 02:33:54 -0400 Subject: [PATCH] fix: set noindex tag on remote profiles as well --- src/controllers/accounts/profile.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/accounts/profile.js b/src/controllers/accounts/profile.js index f235a3c69a..fab317fe17 100644 --- a/src/controllers/accounts/profile.js +++ b/src/controllers/accounts/profile.js @@ -55,6 +55,7 @@ profileController.get = async function (req, res, next) { if (!utils.isNumber(userData.uid)) { res.set('Link', `<${userData.url || userData.uid}>; rel="canonical"`); + res.set('x-robots-tag', 'noindex'); } } @@ -177,6 +178,10 @@ function addTags(res, userData) { rel: 'canonical', href: userData.url || userData.uid, }); + res.locals.metaTags.push({ + name: 'robots', + content: 'noindex', + }); } if (meta.config.activitypubEnabled) {