mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-02 04:27:09 +02:00
Merge branch 'master' into develop
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = function (Categories) {
|
||||
topics[i].index = data.start + i;
|
||||
}
|
||||
|
||||
plugins.fireHook('filter:category.topics.get', {topics: topics, uid: data.uid}, next);
|
||||
plugins.fireHook('filter:category.topics.get', {cid: data.cid, topics: topics, uid: data.uid}, next);
|
||||
},
|
||||
function (results, next) {
|
||||
next(null, {topics: results.topics, nextStart: data.stop + 1});
|
||||
|
||||
@@ -15,7 +15,7 @@ module.exports = function (middleware) {
|
||||
|
||||
middleware.checkGlobalPrivacySettings = function (req, res, next) {
|
||||
if (!req.user && !!parseInt(meta.config.privateUserInfo, 10)) {
|
||||
return controllers.helpers.notAllowed(req, res);
|
||||
return middleware.authenticate(req, res, next);
|
||||
}
|
||||
|
||||
next();
|
||||
|
||||
@@ -272,7 +272,7 @@ module.exports = function (Topics) {
|
||||
db.sortedSetsRemove([
|
||||
'cid:' + topicData.cid + ':tids',
|
||||
'cid:' + topicData.cid + ':tids:pinned',
|
||||
'cid:' + topicData.cid + ':tids:posts'
|
||||
'cid:' + topicData.cid + ':tids:posts' // post count
|
||||
], tid, next);
|
||||
},
|
||||
function (next) {
|
||||
|
||||
Reference in New Issue
Block a user