mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
removed derp
This commit is contained in:
13
src/posts.js
13
src/posts.js
@@ -485,20 +485,9 @@ var async = require('async'),
|
|||||||
}
|
}
|
||||||
|
|
||||||
Posts.getPidIndex = function(pid, uid, callback) {
|
Posts.getPidIndex = function(pid, uid, callback) {
|
||||||
// Making uid optional
|
|
||||||
if ((!uid && !callback) || typeof uid === 'function') {
|
|
||||||
callback = uid || function() {};
|
|
||||||
uid = undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
async.parallel({
|
async.parallel({
|
||||||
settings: function(next) {
|
settings: function(next) {
|
||||||
if (uid) {
|
user.getSettings(uid, next);
|
||||||
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, {});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
tid: function(next) {
|
tid: function(next) {
|
||||||
Posts.getPostField(pid, 'tid', next);
|
Posts.getPostField(pid, 'tid', next);
|
||||||
|
|||||||
Reference in New Issue
Block a user