Skip to content
Commit ff71dd07 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Unify appearance of avatars for undefined and unknown users



When calling the jQuery avatar plugin with a user that did not exist
(that is, users for which "/avatar/{user}/{size}" return a JSON response
with an empty "displayname" value) "?" on a grey background was shown.
However, if the jQuery avatar plugin was called with an undefined
JavaScript value then "?" was shown on a bluish background. This commit
unifies both cases to use the grey background.

The unit tests were also modified to ensure that the grey background is
used in both cases.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent e43400ed
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