From 68ef33800c3890e66c38b167496483b1c664cded Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Mon, 30 Jan 2023 08:13:22 -0600 Subject: [PATCH] stopped private sites from sending mentions (#16160) refs [TryGhost/Team#2467](https://github.com/TryGhost/Team/issues/2467) - sites marked private should not send mentions to external sites --- ghost/core/core/server/services/mentions/service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/core/core/server/services/mentions/service.js b/ghost/core/core/server/services/mentions/service.js index 6f61793eef..7325154485 100644 --- a/ghost/core/core/server/services/mentions/service.js +++ b/ghost/core/core/server/services/mentions/service.js @@ -15,6 +15,7 @@ const urlUtils = require('../../../shared/url-utils'); const outputSerializerUrlUtil = require('../../../server/api/endpoints/utils/serializers/output/utils/url'); const labs = require('../../../shared/labs'); const urlService = require('../url'); +const settingsCache = require('../../../shared/settings-cache'); const DomainEvents = require('@tryghost/domain-events'); const jobsService = require('../jobs'); @@ -69,7 +70,7 @@ module.exports = { externalRequest, getSiteUrl: () => urlUtils.urlFor('home', true), getPostUrl: post => getPostUrl(post), - isEnabled: () => labs.isSet('webmentions') + isEnabled: () => labs.isSet('webmentions') && !settingsCache.get('is_private') }); sendingService.listen(events); }