mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fixing possible crash
This commit is contained in:
@@ -390,7 +390,7 @@ var db = require('./database'),
|
|||||||
count: 1,
|
count: 1,
|
||||||
markRead: false
|
markRead: false
|
||||||
}, function(err, teaser) {
|
}, function(err, teaser) {
|
||||||
teaser = teaser[0];
|
var teaser = teaser[0];
|
||||||
teaser.content = S(teaser.content).stripTags().decodeHTMLEntities().s;
|
teaser.content = S(teaser.content).stripTags().decodeHTMLEntities().s;
|
||||||
next(err, teaser);
|
next(err, teaser);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user