mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 00:40:23 +01:00
Revert "fix: missing invocation of generatePostUrl in generateRepliedTo helper"
This reverts commit a08b2efb5e.
This commit is contained in:
@@ -345,7 +345,8 @@ module.exports = function (utils, Benchpress, relative_path) {
|
|||||||
post.parent.displayname : '[[global:guest]]';
|
post.parent.displayname : '[[global:guest]]';
|
||||||
const isBeforeCutoff = post.timestamp < (Date.now() - (timeagoCutoff * oneDayInMs));
|
const isBeforeCutoff = post.timestamp < (Date.now() - (timeagoCutoff * oneDayInMs));
|
||||||
const langSuffix = isBeforeCutoff ? 'on' : 'ago';
|
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) {
|
function generateWrote(post, timeagoCutoff) {
|
||||||
|
|||||||
Reference in New Issue
Block a user