mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-24 17:21:42 +00:00
Retrieve GitLab avatar.
This commit is contained in:
parent
a3876dfc92
commit
b96cc4eb94
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue