From 62d5548d42773ed5920322d389fd2ee379707916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Tue, 21 Aug 2018 09:26:55 +0200 Subject: [PATCH] AvatarService fix. Get username for accounts with uploaded photo --- app/modules/services/avatar.service.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/services/avatar.service.coffee b/app/modules/services/avatar.service.coffee index f20e7a1a..b4a2ef09 100644 --- a/app/modules/services/avatar.service.coffee +++ b/app/modules/services/avatar.service.coffee @@ -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