Node.js based forum software built for the modern web
fix: set noindex tag on remote profiles as well
Julian Lamfe1601608d25
diff --git a/src/controllers/accounts/profile.js b/src/controllers/accounts/profile.jsindex 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) {