diff options
author | Jason Croft | 2016-05-12 13:26:50 -0400 |
---|---|---|
committer | Jason Croft | 2016-05-12 13:26:50 -0400 |
commit | 0adc0864d5aa7348cfdb624b66776303691c0377 (patch) | |
tree | 9f24979ad12f2b3fb9dc8b90fc06598923116f9e /lib | |
parent | e65d43bd81dc9af9be0c6df599800bc3ccf15a5e (diff) |
Retrieve GitLab avatar.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/models/user.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/models/user.js b/lib/models/user.js index 639fc226..2323dc92 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -66,6 +66,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); |