From 13bdd939e3e9fc421ed8b3bba25b48a08b44dd8d Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 1 Sep 2014 18:51:48 -0400 Subject: [PATCH] crash fix --- src/posts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/posts.js b/src/posts.js index 8f65074914..7d75869a45 100644 --- a/src/posts.js +++ b/src/posts.js @@ -527,6 +527,7 @@ var async = require('async'), } Posts.getPidIndex = function(pid, uid, callback) { + callback = callback || function() {}; async.parallel({ settings: function(next) { user.getSettings(uid, next);