0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

🐛 Fixed comments script always injected

refs https://ghost.slack.com/archives/C02G9E68C/p1660562592376769
This commit is contained in:
Simon Backx 2022-08-15 13:26:24 +02:00
parent 23b37a68a6
commit bad4f13c2f

View file

@ -229,7 +229,7 @@ module.exports = async function ghost_head(options) { // eslint-disable-line cam
head.push(`<link rel="stylesheet" type="text/css" href="${getAssetUrl('public/cards.min.css')}">`);
}
if (settingsCache.get('enable_comments') !== 'off') {
if (settingsCache.get('comments_enabled') !== 'off') {
head.push(`<script defer src="${getAssetUrl('public/comment-counts.min.js')}" data-ghost-comments-counts-api="${urlUtils.getSiteUrl(true)}members/api/comments/counts/"></script>`);
}