Commit 8c9a3cce authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Do not request an avatar if there is none

parent a619629a
...@@ -64,8 +64,12 @@ var UserList = { ...@@ -64,8 +64,12 @@ var UserList = {
/** /**
* Avatar or placeholder * Avatar or placeholder
*/ */
if ($tr.find('div.avatardiv').length){ if ($tr.find('div.avatardiv').length) {
$('div.avatardiv', $tr).avatar(user.name, 32, undefined, undefined, undefined, user.displayname); if (user.isAvatarAvailable === true) {
$('div.avatardiv', $tr).avatar(user.name, 32, undefined, undefined, undefined, user.displayname);
} else {
$('div.avatardiv', $tr).imageplaceholder(user.displayname);
}
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment