diff --git a/server/methods/getAvatarSuggestion.coffee b/server/methods/getAvatarSuggestion.coffee index b5dba33c3f5..f09c5ddc1b7 100644 --- a/server/methods/getAvatarSuggestion.coffee +++ b/server/methods/getAvatarSuggestion.coffee @@ -27,7 +27,7 @@ if user.services.twitter?.profile_image_url_https? and RocketChat.settings.get 'Accounts_OAuth_Twitter' avatars.push service: 'twitter' - url: user.services.twitter.profile_image_url_https + url: user.services.twitter.profile_image_url_https.replace(/_normal|_bigger/, '') if user.services.gitlab?.avatar_url? and RocketChat.settings.get 'Accounts_OAuth_Gitlab' avatars.push