mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
closes #303
This commit is contained in:
@@ -126,13 +126,6 @@ var express = require('express'),
|
||||
|
||||
nconf.set('https', req.secure);
|
||||
|
||||
// Don't bother with session handling for API requests
|
||||
if (/^\/api\//.test(req.url)) return next();
|
||||
|
||||
if (req.user && req.user.uid) {
|
||||
user.session_ping(req.sessionID, req.user.uid);
|
||||
}
|
||||
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user