Skip to content

Commit bbc7e26

Browse files
committed
Update to use bigger avatar image and twitter now use screen_name based profile image url
1 parent 97befb6 commit bbc7e26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/models/user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ module.exports = function (sequelize, DataTypes) {
6464
photo = 'https://graph.facebook.com/' + profile.id + '/picture';
6565
break;
6666
case "twitter":
67-
photo = profile.photos[0].value;
67+
photo = 'https://twitter.com/' + profile.username + '/profile_image?size=bigger';
6868
break;
6969
case "github":
70-
photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48';
70+
photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=96';
7171
break;
7272
case "gitlab":
7373
photo = profile.avatarUrl;

0 commit comments

Comments
 (0)