mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
dont error when no teaser data
This commit is contained in:
@@ -350,7 +350,7 @@ var async = require('async'),
|
||||
if (err) {
|
||||
return next(err);
|
||||
} else if(!postData || !utils.isNumber(postData.uid)) {
|
||||
return next(new Error('[[error:no-teaser]]'));
|
||||
return callback();
|
||||
}
|
||||
|
||||
user.getUserFields(postData.uid, ['username', 'userslug', 'picture'], function(err, userData) {
|
||||
|
||||
Reference in New Issue
Block a user