bengott/meteor-avatar

Can't seem to get Avatar to pickup Avatar.options settings

Closed this issue · 1 comments

Hi, great package!

Avatar does not seem to pickup any settings.

I have the following in a /client folder :

Meteor.startup(function () {
    Avatar.options = {
        //emailHashProperty: 'email_hash',
        defaultType: "initials",
        defaultAvatarUrl: '/assets/img/avatar.png',
        gravatarDefault: 'identicon',
        //serverBaseUrl: 'http://example.com'
    };
});

My avatars default to images.
Also I see a 404s in the console:
9342a3f23c9501393019a3236e2cbbda:1 GET http://www.gravatar.com/avatar/9342a3f23c9501393019a3236e2cbbda?default=404&size=200 404 (Not Found)

Any ideas?

Make sure you read the README carefully, specifically this part:
https://github.com/bengott/meteor-avatar#how-the-package-chooses-an-avatar
If defaultType is 'initials', then the gravatar URL should return 404 if no gravatar is found in order to show initials.

I realize the config options are confusing. Check out my comments on issue #24 for some historical perspective and more explanation.