From 7d22384d7ff6a7c03c834d57208a7521d1d420b3 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 5 Jul 2022 15:12:47 +0200 Subject: [PATCH] Passed post id to comments helper instead of comment id refs https://github.com/TryGhost/Team/issues/1664 --- core/frontend/helpers/comments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/frontend/helpers/comments.js b/core/frontend/helpers/comments.js index 4be6569c83..c52283199a 100644 --- a/core/frontend/helpers/comments.js +++ b/core/frontend/helpers/comments.js @@ -2,6 +2,7 @@ const {SafeString} = require('../services/handlebars'); const {config, urlUtils, getFrontendKey, labs} = require('../services/proxy'); async function comments() { + // todo: For now check on the comment id to exclude normal pages (we probably have a better way to do this) const commentId = this.comment_id; if (!commentId) { @@ -14,7 +15,7 @@ async function comments() { 'ghost-comments': urlUtils.getSiteUrl(), api: urlUtils.urlFor('api', {type: 'content'}, true), key: frontendKey, - 'comment-id': commentId, + 'post-id': this.id, 'sentry-dsn': '' /* todo: insert sentry dsn key here */ };