aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/jquery.avatar.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-09-20 18:14:00 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-09-20 18:20:58 +0200
commitea10a1292a7674149581b4332fb0849cd84cf467 (patch)
tree4d32d7e4f660cdc48452b7a8fee6e6036d01c084 /core/js/jquery.avatar.js
parentff71dd07a6db2b9fb60e1b756eac84ef103cabe0 (diff)
downloadnextcloud-server-ea10a1292a7674149581b4332fb0849cd84cf467.tar.gz
nextcloud-server-ea10a1292a7674149581b4332fb0849cd84cf467.zip
Use "?" instead of user ID as seed for the image placeholder
The seed of the image placeholder is needed to generate the background color of the image, but as the background color is later overriden any seed could be used. When no text is explicitly given the seed is used as text too, so there is no need to pass the user ID and simply using "?" as seed is enough. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/js/jquery.avatar.js')
-rw-r--r--core/js/jquery.avatar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js
index 5813a80646f..c8ac70ac692 100644
--- a/core/js/jquery.avatar.js
+++ b/core/js/jquery.avatar.js
@@ -113,7 +113,7 @@
$div.imageplaceholder(user, result.data.displayname);
} else {
// User does not exist
- $div.imageplaceholder(user, '?');
+ $div.imageplaceholder('?');
$div.css('background-color', '#b9b9b9');
}
} else {