From 523f245cd85977d86f7c7fc01ca02196e2fb9dd2 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 10 Sep 2014 02:00:24 -0400 Subject: [PATCH] removed derp --- src/posts.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/posts.js b/src/posts.js index 9c1285a64b..346965709d 100644 --- a/src/posts.js +++ b/src/posts.js @@ -485,20 +485,9 @@ var async = require('async'), } Posts.getPidIndex = function(pid, uid, callback) { - // Making uid optional - if ((!uid && !callback) || typeof uid === 'function') { - callback = uid || function() {}; - uid = undefined; - } - async.parallel({ settings: function(next) { - if (uid) { - user.getSettings(uid, next); - } else { - // No uid specified, so return empty object so that the check below will assume regular topic post sorting - next(null, {}); - } + user.getSettings(uid, next); }, tid: function(next) { Posts.getPostField(pid, 'tid', next);