Skip to content
Snippets Groups Projects
Unverified Commit 27273934 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Remove _normal and _bigger from twitter avatar url

Closes #5501
parent 05d9f689
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