Skip to content

Node.js based forum software built for the modern web

fixed move recent replies

Barış Soner Uşaklı2d734c1648da
diff --git a/src/categories/recentreplies.js b/src/categories/recentreplies.js
index 974f3eeef9..75ea5b637f 100644
--- a/src/categories/recentreplies.js
+++ b/src/categories/recentreplies.js
@@ -4,9 +4,9 @@
var async = require('async'),
winston = require('winston'),
- db = require('./../database'),
- posts = require('./../posts'),
- topics = require('./../topics');
+ db = require('../database'),
+ posts = require('../posts'),
+ topics = require('../topics');
module.exports = function(Categories) {
Categories.getRecentReplies = function(cid, uid, count, callback) {
@@ -48,7 +48,7 @@ module.exports = function(Categories) {
return winston.error(err.message);
}
- if (!results.mainPid && results.pids && !pids.length) {
+ if (!results.mainPid && results.pids && !results.pids.length) {
return;
}