mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: always return string from helper
if value ended up being 0 it wasnt output
This commit is contained in:
@@ -324,7 +324,7 @@ module.exports = function (utils, Benchpress, relative_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function increment(value, inc) {
|
function increment(value, inc) {
|
||||||
return value + parseInt(inc, 10);
|
return String(value + parseInt(inc, 10));
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateRepliedTo(post, timeagoCutoff) {
|
function generateRepliedTo(post, timeagoCutoff) {
|
||||||
|
|||||||
Reference in New Issue
Block a user