mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
skip loading a topic if cant load its data
This commit is contained in:
@@ -174,7 +174,10 @@ var RDB = require('./redis.js'),
|
||||
|
||||
function loadTopic(tid, callback) {
|
||||
topics.getTopicData(tid, function(topicData) {
|
||||
|
||||
if(!topicData) {
|
||||
return callback(null);
|
||||
}
|
||||
|
||||
getTopicInfo(topicData, function(topicInfo) {
|
||||
|
||||
topicData['pin-icon'] = topicData.pinned === '1' ? 'icon-pushpin' : 'none';
|
||||
|
||||
Reference in New Issue
Block a user