summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-03-29 17:17:19 -0600
committerGitHub <noreply@github.com>2017-03-29 17:17:19 -0600
commite8f2ee769b039eed5cd76c77d467483faac4b075 (patch)
tree47f48dba501756b847e952907c754b3ec502e54e
parentd17678b5b2cb430a223d0053337de6fc7860d0bc (diff)
parent0da04fd284c827e1d745fa372efd6587d165cddd (diff)
downloadnextcloud-server-e8f2ee769b039eed5cd76c77d467483faac4b075.tar.gz
nextcloud-server-e8f2ee769b039eed5cd76c77d467483faac4b075.zip
Merge pull request #4142 from nextcloud/numeric_avatar
Allow avatars for full numeric users
-rw-r--r--core/js/jquery.avatar.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js
index 1abe70b79ea..29d019baea7 100644
--- a/core/js/jquery.avatar.js
+++ b/core/js/jquery.avatar.js
@@ -48,6 +48,13 @@
(function ($) {
$.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) {
+ if (typeof(user) !== 'undefined') {
+ user = String(user);
+ }
+ if (typeof(displayname) !== 'undefined') {
+ displayname = String(displayname);
+ }
+
if (typeof(size) === 'undefined') {
if (this.height() > 0) {
size = this.height();