Revert "fix: missing invocation of generatePostUrl in generateRepliedTo helper"

This reverts commit a08b2efb5e.
This commit is contained in:
Julian Lam
2024-03-20 23:11:32 -04:00
parent 5a2d17dfd1
commit c9985c5cd6

View File

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