mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 01:27:49 +02:00
dont add more than 10
This commit is contained in:
@@ -20,7 +20,7 @@ define('forum/topic/browsing', function() {
|
||||
Browsing.onUserEnter = function(data) {
|
||||
var activeEl = $('.thread_active_users');
|
||||
var user = activeEl.find('a[data-uid="' + data.uid + '"]');
|
||||
if (!user.length) {
|
||||
if (!user.length && activeEl.children().length < 10) {
|
||||
addUserIcon(data);
|
||||
} else {
|
||||
user.attr('data-count', parseInt(user.attr('data-count'), 10) + 1);
|
||||
|
||||
Reference in New Issue
Block a user