Fixed Member/Speaker Pic URL

fixed for twitter profiles

Change-Id: I1ca29e954306706050728cc3e00468d28f974a40
This commit is contained in:
smarcet 2019-04-09 18:17:26 -03:00
parent 5354a39a81
commit e37dd1a70b
2 changed files with 2 additions and 2 deletions

View File

@ -1116,7 +1116,7 @@ SQL;
}
if(empty($photo_url) && !empty($this->getTwitterHandle()) ){
$twitterName = $this->getTwitterHandle();
$photoUrl = 'https://twitter.com/' . trim(trim($twitterName, '@')) . '/profile_image?size=original';
$photoUrl = sprintf("https://avatars.io/twitter/%s", trim(trim($twitterName, '@')));
}
if(empty($photoUrl)){
$photoUrl = File::getCloudLinkForImages("generic-profile-photo.png");

View File

@ -1613,7 +1613,7 @@ SQL;
}
if(empty($photo_url) && !empty($this->getTwitterName()) ){
$twitterName = $this->getTwitterName();
$photoUrl = 'https://twitter.com/' . trim(trim($twitterName, '@')) . '/profile_image?size=original';
$photoUrl = sprintf("https://avatars.io/twitter/%s", rim(trim($twitterName, '@')));
}
if(empty($photoUrl)){
$photoUrl = File::getCloudLinkForImages("generic-speaker-icon.png");