Node.js based forum software built for the modern web
Revert "fix: missing invocation of generatePostUrl in generateRepliedTo helper"
Julian Lamc9985c5cd612
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.jsindex 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) {