Merge pull request #5656 from RocketChat/fix/5501-get-bigger-twitter-avatar

Remove _normal and _bigger from twitter avatar url
pull/5657/head
Gabriel Engel 9 years ago committed by GitHub
commit aad1760cea
  1. 2
      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

Loading…
Cancel
Save