From d9b74131aedd0f263aa7fe35307ee2c6d6e6ab86 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 30 Dec 2015 19:16:49 +0100 Subject: Fix avatar support on Sanstorm The bug comes for 9154b06 which this commit partially reverts. The synchronization between the user document profile and the Sandstorm HTTP headers is still not perfect. Having a clean model may requires the `accounts-sandstorm` to expose a hook to modify the user document just after the `services.sandstorm` credentials are updated. Fixes #460 --- client/components/users/userAvatar.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/components/users/userAvatar.jade') diff --git a/client/components/users/userAvatar.jade b/client/components/users/userAvatar.jade index 44e899a7..e08666e5 100644 --- a/client/components/users/userAvatar.jade +++ b/client/components/users/userAvatar.jade @@ -1,7 +1,7 @@ template(name="userAvatar") a.member.js-member(title="{{userData.profile.fullname}} ({{userData.username}})") - if userData.getAvatarUrl - img.avatar.avatar-image(src=userData.getAvatarUrl) + if userData.profile.avatarUrl + img.avatar.avatar-image(src=userData.profile.avatarUrl) else +userAvatarInitials(userId=userData._id) -- cgit v1.2.3-1-g7c22