From b96cc4eb944d88beb5472ec3cea50a0cde6f5ce8 Mon Sep 17 00:00:00 2001 From: Jason Croft Date: Thu, 12 May 2016 13:26:28 -0400 Subject: Retrieve GitLab avatar. --- lib/models/user.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/models/user.js b/lib/models/user.js index e1a373d6..b7ef1295 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -63,6 +63,9 @@ module.exports = function (sequelize, DataTypes) { case "github": photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48'; break; + case "gitlab": + photo = profile.avatarUrl; + break; case "dropbox": //no image api provided, use gravatar photo = 'https://www.gravatar.com/avatar/' + md5(profile.emails[0].value); -- cgit v1.2.3