diff options
Diffstat (limited to '')
-rw-r--r-- | lib/models/user.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/models/user.js b/lib/models/user.js index aee42041..dd93bf78 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -105,8 +105,8 @@ module.exports = function (sequelize, DataTypes) { break; case "gitlab": photo = profile.avatarUrl; - if (bigger) photo.replace(/(\?s=)\d*$/i, '$1400'); - else photo.replace(/(\?s=)\d*$/i, '$196'); + if (bigger) photo = photo.replace(/(\?s=)\d*$/i, '$1400'); + else photo = photo.replace(/(\?s=)\d*$/i, '$196'); break; case "dropbox": //no image api provided, use gravatar @@ -116,8 +116,8 @@ module.exports = function (sequelize, DataTypes) { break; case "google": photo = profile.photos[0].value; - if (bigger) photo.replace(/(\?sz=)\d*$/i, '$1400'); - else photo.replace(/(\?sz=)\d*$/i, '$196'); + if (bigger) photo = photo.replace(/(\?sz=)\d*$/i, '$1400'); + else photo = photo.replace(/(\?sz=)\d*$/i, '$196'); break; case "ldap": //no image api provided, |