mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fixed a bug where anonymous users couldnt access topics
This commit is contained in:
@@ -172,7 +172,7 @@ passport.deserializeUser(function(uid, done) {
|
||||
case 'topic' :
|
||||
global.modules.posts.get(function(data) {
|
||||
res.send(JSON.stringify(data));
|
||||
}, req.params.id, req.user.uid || 0);
|
||||
}, req.params.id, (req.user) ? req.user.uid : 0);
|
||||
break;
|
||||
default :
|
||||
res.send('{}');
|
||||
|
||||
Reference in New Issue
Block a user