mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
possible fix for #1410
This commit is contained in:
@@ -328,7 +328,7 @@ var async = require('async'),
|
||||
posts.getPostFields(pid, ['pid', 'uid', 'timestamp'], function(err, postData) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
} else if(!postData || !postData.uid) {
|
||||
} else if(!postData || !utils.isNumber(postData.uid)) {
|
||||
return callback(new Error('[[error:no-teaser]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user