mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: missing invocation of generatePostUrl in generateRepliedTo helper
This commit is contained in:
@@ -342,8 +342,7 @@ 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';
|
||||
const url = generatePostUrl(post, 'toPid');
|
||||
return `[[topic:replied-to-user-${langSuffix}, ${post.toPid}, ${url}, ${displayname}, ${relative_path}/post/${post.pid}, ${post.timestampISO}]]`;
|
||||
return `[[topic:replied-to-user-${langSuffix}, ${post.toPid}, ${generatePostUrl(post, 'toPid')}, ${displayname}, ${generatePostUrl(post, 'pid')}, ${post.timestampISO}]]`;
|
||||
}
|
||||
|
||||
function generateWrote(post, timeagoCutoff) {
|
||||
|
||||
Reference in New Issue
Block a user