add uid to filter:topic.get

v1.18.x
barisusakli 10 years ago
parent 3eb922393f
commit 6fe8d25166

@ -255,7 +255,9 @@ var async = require('async'),
topicData.locked = parseInt(topicData.locked, 10) === 1; topicData.locked = parseInt(topicData.locked, 10) === 1;
topicData.pinned = parseInt(topicData.pinned, 10) === 1; topicData.pinned = parseInt(topicData.pinned, 10) === 1;
plugins.fireHook('filter:topic.get', topicData, callback); plugins.fireHook('filter:topic.get', {topic: topicData, uid: uid}, function(err, data) {
callback(err, data ? data.topics : null);
});
}); });
}); });
}; };

Loading…
Cancel
Save