From 45383ce21ecf7480ac23fc79cee55d2cf4aa4c73 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 17 Sep 2014 18:09:53 -0400 Subject: [PATCH] posts.getPostsByTid and posts.getPostsByPids now require a uid passed in --- src/posts.js | 6 +++--- src/topics.js | 4 ++-- src/topics/posts.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/posts.js b/src/posts.js index c0f0d91cb8..6ba5350b34 100644 --- a/src/posts.js +++ b/src/posts.js @@ -94,7 +94,7 @@ var async = require('async'), ], callback); }; - Posts.getPostsByTid = function(tid, set, start, end, reverse, callback) { + Posts.getPostsByTid = function(tid, set, start, end, uid, reverse, callback) { Posts.getPidsFromSet(set, start, end, reverse, function(err, pids) { if(err) { return callback(err); @@ -104,7 +104,7 @@ var async = require('async'), return callback(null, []); } - Posts.getPostsByPids(pids, callback); + Posts.getPostsByPids(pids, uid, callback); }); }; @@ -115,7 +115,7 @@ var async = require('async'), db[reverse ? 'getSortedSetRevRange' : 'getSortedSetRange'](set, start, end, callback); }; - Posts.getPostsByPids = function(pids, callback) { + Posts.getPostsByPids = function(pids, uid, callback) { var keys = []; for(var x=0, numPids=pids.length; x