mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
getPidIndex callback if none specified
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user