mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
closes #2235
This commit is contained in:
@@ -24,6 +24,8 @@ var fs = require('fs'),
|
||||
websockets = require('../socket.io');
|
||||
|
||||
function userNotFound(res) {
|
||||
res.locals.notFound = true;
|
||||
|
||||
if (res.locals.isAPI) {
|
||||
res.status(404).json('no-user');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user