mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
posts.getPostsByTid and posts.getPostsByPids now require a uid passed in
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = function(Topics) {
|
||||
|
||||
Topics.getTopicPosts = function(tid, set, start, end, uid, reverse, callback) {
|
||||
callback = callback || function() {};
|
||||
posts.getPostsByTid(tid, set, start, end, reverse, function(err, postData) {
|
||||
posts.getPostsByTid(tid, set, start, end, uid, reverse, function(err, postData) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user