Fixed Member/Speaker Pic URL
fixed for twitter profiles Change-Id: I1ca29e954306706050728cc3e00468d28f974a40
This commit is contained in:
parent
5354a39a81
commit
e37dd1a70b
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue