Skip to content

Node.js based forum software built for the modern web

Fix: When a user changes his online status, all [component="user/status"] elements on a page are changing. The same bug appears in: /user/* /users/* /topic/* /chats/*

Megab4bcfb83a7a0
diff --git a/public/src/app.js b/public/src/app.js
index 1bf68c6aca..282e76718f 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -485,7 +485,7 @@ app.cacheBuster = null;
if(err) {
return app.alertError(err.message);
}
- $('[component="user/status"]')
+ $('[data-uid="' + app.user.uid + '"] [component="user/status"], [component="header/profilelink"] [component="user/status"]')
.removeClass('away online dnd offline')
.addClass(status);