Skip to content

Node.js based forum software built for the modern web

fix: always return string from helper

Barış Soner Uşaklıbdeca0495168
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js
index 8121ad171d..d8ab1025fe 100644
--- a/public/src/modules/helpers.common.js
+++ b/public/src/modules/helpers.common.js
@@ -324,7 +324,7 @@ module.exports = function (utils, Benchpress, relative_path) {
}
function increment(value, inc) {
- return value + parseInt(inc, 10);
+ return String(value + parseInt(inc, 10));
}
function generateRepliedTo(post, timeagoCutoff) {