This commit is contained in:
barisusakli
2014-08-17 00:14:45 -04:00
parent 5ae7c92d55
commit 05fdc945f3
7 changed files with 84 additions and 36 deletions

View File

@@ -386,7 +386,7 @@ var async = require('async'),
});
};
Topics.getTeaser = function(tid, callback) {
Topics.getTeaser = function(tid, uid, callback) {
Topics.getLatestUndeletedPid(tid, function(err, pid) {
if (err || !pid) {
return callback(err);
@@ -411,7 +411,7 @@ var async = require('async'),
});
},
postIndex: function(next) {
posts.getPidIndex(pid, next);
posts.getPidIndex(pid, uid, next);
}
}, function(err, results) {
if (err) {