From a08b2efb5e8f59673b8075b721ca0fd06957ee93 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 28 Feb 2024 13:33:41 -0500 Subject: [PATCH] fix: missing invocation of generatePostUrl in generateRepliedTo helper --- public/src/modules/helpers.common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js index 92b9baf7be..4f137a519b 100644 --- a/public/src/modules/helpers.common.js +++ b/public/src/modules/helpers.common.js @@ -342,8 +342,7 @@ module.exports = function (utils, Benchpress, relative_path) { post.parent.displayname : '[[global:guest]]'; const isBeforeCutoff = post.timestamp < (Date.now() - (timeagoCutoff * oneDayInMs)); const langSuffix = isBeforeCutoff ? 'on' : 'ago'; - const url = generatePostUrl(post, 'toPid'); - return `[[topic:replied-to-user-${langSuffix}, ${post.toPid}, ${url}, ${displayname}, ${relative_path}/post/${post.pid}, ${post.timestampISO}]]`; + return `[[topic:replied-to-user-${langSuffix}, ${post.toPid}, ${generatePostUrl(post, 'toPid')}, ${displayname}, ${generatePostUrl(post, 'pid')}, ${post.timestampISO}]]`; } function generateWrote(post, timeagoCutoff) {