Retrieve GitLab avatar.

This commit is contained in:
Jason Croft 2016-05-12 13:26:28 -04:00
parent a3876dfc92
commit b96cc4eb94

View file

@ -63,6 +63,9 @@ module.exports = function (sequelize, DataTypes) {
case "github": case "github":
photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48'; photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48';
break; break;
case "gitlab":
photo = profile.avatarUrl;
break;
case "dropbox": case "dropbox":
//no image api provided, use gravatar //no image api provided, use gravatar
photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value); photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value);