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
This commit is contained in:
Maxime Quandalle 2015-12-30 19:16:49 +01:00
parent f6c01161a0
commit d9b74131ae
3 changed files with 16 additions and 16 deletions

View file

@ -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)