Skip to content
Snippets Groups Projects
Commit aad1760c authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

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

Remove _normal and _bigger from twitter avatar url
parents 7ceb221f 27273934
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment