diff options
author | Jason Croft | 2016-05-12 13:26:28 -0400 |
---|---|---|
committer | Jason Croft | 2016-05-12 13:26:28 -0400 |
commit | b96cc4eb944d88beb5472ec3cea50a0cde6f5ce8 (patch) | |
tree | 2d5c357a209a1e6f29bb51f8cb311782e2b8bc5b /lib/models | |
parent | a3876dfc9292cb8d96d00c045ef2bb1a517a85a5 (diff) |
Retrieve GitLab avatar.
Diffstat (limited to '')
-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 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); |