AvatarService fix. Get username for accounts with uploaded photo

stable
Daniel García 2018-08-21 09:26:55 +02:00 committed by Alex Hermida
parent f594bff094
commit 62d5548d42
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ class AvatarService
if photo
return {
url: photo
url: photo,
username: username
}
else if location.host.indexOf('localhost') != -1 || !@config.get("gravatar", true)
root = location.protocol + '//' + location.host