Allow avatars for full numeric users

Fixes #4087

Because of fancy javascript if a full numeric uid was used javascript
would convert this to an int. Now we just convert everything to a string
first.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-03-29 13:39:48 +02:00
parent 626d03e3d4
commit 54c68519ce
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@
(function ($) {
$.fn.avatar = function(user, size, ie8fix, hidedefault, callback, displayname) {
user = String(user);
displayname = String(displayname);
if (typeof(size) === 'undefined') {
if (this.height() > 0) {
size = this.height();