mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 07:26:13 +02:00
check for invalid topic
This commit is contained in:
@@ -112,7 +112,7 @@ module.exports = function(privileges) {
|
||||
|
||||
|
||||
pids = postData.filter(function(post) {
|
||||
return cids.indexOf(post.topic.cid) !== -1 &&
|
||||
return post.topic && cids.indexOf(post.topic.cid) !== -1 &&
|
||||
((parseInt(post.topic.deleted, 10) !== 1 && parseInt(post.deleted, 10) !== 1) || results.isAdmin || isModOf[post.cid]);
|
||||
}).map(function(post) {
|
||||
return post.pid;
|
||||
|
||||
Reference in New Issue
Block a user