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

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