From c9985c5cd61269020a33611ba554d96e4f8af5a0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 20 Mar 2024 23:11:32 -0400 Subject: [PATCH] Revert "fix: missing invocation of generatePostUrl in generateRepliedTo helper" This reverts commit a08b2efb5e8f59673b8075b721ca0fd06957ee93. --- public/src/modules/helpers.common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js index 6000df594f..121a47aa40 100644 --- a/public/src/modules/helpers.common.js +++ b/public/src/modules/helpers.common.js @@ -345,7 +345,8 @@ 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'; - return `[[topic:replied-to-user-${langSuffix}, ${post.toPid}, ${generatePostUrl(post, 'toPid')}, ${displayname}, ${generatePostUrl(post, 'pid')}, ${post.timestampISO}]]`; + const url = generatePostUrl(post, 'toPid'); + return `[[topic:replied-to-user-${langSuffix}, ${post.toPid}, ${url}, ${displayname}, ${relative_path}/post/${post.pid}, ${post.timestampISO}]]`; } function generateWrote(post, timeagoCutoff) {