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() {