From a5423aff167a91bf1a09c9175d14bfd616a0bcaa Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 3 Sep 2014 12:55:31 -0400 Subject: [PATCH] getPidIndex callback if none specified --- src/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts.js b/src/posts.js index 96a00f1397..146b08f977 100644 --- a/src/posts.js +++ b/src/posts.js @@ -534,7 +534,7 @@ var async = require('async'), Posts.getPidIndex = function(pid, uid, callback) { // Making uid optional if ((!uid && !callback) || typeof uid === 'function') { - callback = uid; + callback = uid || function() {}; uid = undefined; }