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