mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
add uid to filter:topic.get
This commit is contained in:
@@ -255,7 +255,9 @@ var async = require('async'),
|
||||
topicData.locked = parseInt(topicData.locked, 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);
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user