mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
Update to use bigger avatar image and twitter now use screen_name based profile image url
This commit is contained in:
parent
97befb6238
commit
bbc7e26e77
1 changed files with 2 additions and 2 deletions
|
@ -64,10 +64,10 @@ module.exports = function (sequelize, DataTypes) {
|
||||||
photo = 'https://graph.facebook.com/' + profile.id + '/picture';
|
photo = 'https://graph.facebook.com/' + profile.id + '/picture';
|
||||||
break;
|
break;
|
||||||
case "twitter":
|
case "twitter":
|
||||||
photo = profile.photos[0].value;
|
photo = 'https://twitter.com/' + profile.username + '/profile_image?size=bigger';
|
||||||
break;
|
break;
|
||||||
case "github":
|
case "github":
|
||||||
photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48';
|
photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=96';
|
||||||
break;
|
break;
|
||||||
case "gitlab":
|
case "gitlab":
|
||||||
photo = profile.avatarUrl;
|
photo = profile.avatarUrl;
|
||||||
|
|
Loading…
Reference in a new issue