summaryrefslogtreecommitdiff
path: root/lib/models/user.js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-05-20 02:13:22 +0800
committerCheng-Han, Wu2016-05-20 02:13:22 +0800
commitbbc7e26e7719eb5cea2ae00a1431a147de024251 (patch)
treef6e3467bdc8949e1cf0251da3860b627eff3ff45 /lib/models/user.js
parent97befb6238f2a364c73f1158923a50f6b8752f7f (diff)
Update to use bigger avatar image and twitter now use screen_name based profile image url
Diffstat (limited to 'lib/models/user.js')
-rw-r--r--lib/models/user.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/user.js b/lib/models/user.js
index 64173cbd..237532c1 100644
--- a/lib/models/user.js
+++ b/lib/models/user.js
@@ -64,10 +64,10 @@ module.exports = function (sequelize, DataTypes) {
photo = 'https://graph.facebook.com/' + profile.id + '/picture';
break;
case "twitter":
- photo = profile.photos[0].value;
+ photo = 'https://twitter.com/' + profile.username + '/profile_image?size=bigger';
break;
case "github":
- photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=48';
+ photo = 'https://avatars.githubusercontent.com/u/' + profile.id + '?s=96';
break;
case "gitlab":
photo = profile.avatarUrl;