Barış Soner Uşaklı
2025-10-17 16:23:50 -04:00
parent 603068aebb
commit 2425f3b671
2 changed files with 16 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ module.exports = function (utils, Benchpress, relative_path) {
userAgentIcons,
buildAvatar,
increment,
lessthan,
greaterthan,
generateWroteReplied,
generateRepliedTo,
generateWrote,
@@ -328,6 +330,14 @@ module.exports = function (utils, Benchpress, relative_path) {
return String(value + parseInt(inc, 10));
}
function lessthan(a, b) {
return parseInt(a, 10) < parseInt(b, 10);
}
function greaterthan(a, b) {
return parseInt(a, 10) > parseInt(b, 10);
}
function generateWroteReplied(post, timeagoCutoff) {
if (post.toPid) {
return generateRepliedTo(post, timeagoCutoff);