Merge pull request #4142 from nextcloud/numeric_avatar

Allow avatars for full numeric users
This commit is contained in:
Morris Jobke 2017-03-29 17:17:19 -06:00 committed by GitHub
commit e8f2ee769b
1 changed files with 7 additions and 0 deletions

View File

@ -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();