mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
filter:topic.get, surprisingly never implemented till today
This commit is contained in:
@@ -304,9 +304,11 @@ 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, function(err, topicData) {
|
||||||
callback(null, topicData);
|
callback(null, topicData);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Topics.getMainPost = function(tid, uid, callback) {
|
Topics.getMainPost = function(tid, uid, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user