fix: parseInt cutoff

v1.18.x
Barış Soner Uşaklı 5 years ago
parent e020b85bf5
commit 0e5e47f410

@ -49,7 +49,7 @@ module.exports = function (Topics) {
Topics.unreadCutoff = async function (uid) {
const cutoff = Date.now() - (meta.config.unreadCutoff * 86400000);
const data = await plugins.fireHook('filter:topics.unreadCutoff', { uid: uid, cutoff: cutoff });
return data.cutoff;
return parseInt(data.cutoff, 10);
};
Topics.getUnreadTids = async function (params) {

Loading…
Cancel
Save