mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
updated installation data to only create four categories by default, and altered colour to be less stark (heh, what does that mean anyway...). Also added an intro post
This commit is contained in:
@@ -352,6 +352,11 @@ Sockets.reqFromSocket = function(socket) {
|
||||
|
||||
Sockets.isUserOnline = isUserOnline;
|
||||
function isUserOnline(uid) {
|
||||
if (!io) {
|
||||
// Special handling for install script (socket.io not initialised)
|
||||
return false;
|
||||
}
|
||||
|
||||
return Array.isArray(io.sockets.manager.rooms['/uid_' + uid]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user