posts.getPostsByTid and posts.getPostsByPids now require a uid passed in

This commit is contained in:
psychobunny
2014-09-17 18:09:53 -04:00
parent c1f3b94d67
commit 45383ce21e
3 changed files with 6 additions and 6 deletions

View File

@@ -262,7 +262,7 @@ var async = require('async'),
if (!pids.length) {
return next(null, []);
}
posts.getPostsByPids(pids, function(err, posts) {
posts.getPostsByPids(pids, uid, function(err, posts) {
if (err) {
return next(err);
}
@@ -323,7 +323,7 @@ var async = require('async'),
return topic ? topic.mainPid : null;
});
posts.getPostsByPids(mainPids, function(err, postData) {
posts.getPostsByPids(mainPids, uid, function(err, postData) {
if (err) {
return callback(err);
}