From 661a6e04734d400217f373c5ca7ff028afb71a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 22 Mar 2023 19:58:05 -0400 Subject: [PATCH] https://github.com/NodeBB/NodeBB/issues/11329 --- public/language/en-GB/topic.json | 8 ++++---- public/src/modules/helpers.common.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/language/en-GB/topic.json b/public/language/en-GB/topic.json index 81527bad22..9178f6115d 100644 --- a/public/language/en-GB/topic.json +++ b/public/language/en-GB/topic.json @@ -43,10 +43,10 @@ "ban-ip": "Ban IP", "view-history": "Edit History", - "wrote-ago": "wrote ", - "wrote-on": "wrote on ", - "replied-to-user-ago": "replied to %3 ", - "replied-to-user-on": "replied to %3 on ", + "wrote-ago": "wrote ", + "wrote-on": "wrote on ", + "replied-to-user-ago": "replied to %3 ", + "replied-to-user-on": "replied to %3 on ", "user-locked-topic-ago": "%1 locked this topic %2", "user-locked-topic-on": "%1 locked this topic on %2", diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js index 913da8d09c..8945850228 100644 --- a/public/src/modules/helpers.common.js +++ b/public/src/modules/helpers.common.js @@ -328,13 +328,13 @@ module.exports = function (utils, Benchpress, relative_path) { post.parent.username : '[[global:guest]]'; const isBeforeCutoff = post.timestamp < (Date.now() - (timeagoCutoff * oneDayInMs)); const langSuffix = isBeforeCutoff ? 'on' : 'ago'; - return `[[topic:replied-to-user-${langSuffix}, ${post.toPid}, ${relative_path}/post/${post.toPid}, ${username}, ${post.timestampISO}]]`; + return `[[topic:replied-to-user-${langSuffix}, ${post.toPid}, ${relative_path}/post/${post.toPid}, ${username}, ${relative_path}/post/${post.pid}, ${post.timestampISO}]]`; } function generateWrote(post, timeagoCutoff) { const isBeforeCutoff = post.timestamp < (Date.now() - (timeagoCutoff * oneDayInMs)); const langSuffix = isBeforeCutoff ? 'on' : 'ago'; - return `[[topic:wrote-${langSuffix}, ${post.timestampISO}]]`; + return `[[topic:wrote-${langSuffix}, ${relative_path}/post/${post.pid}, ${post.timestampISO}]]`; } function register() {