Skip to content

Commit

Permalink
Use larger profile images
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonshatch committed May 24, 2018
1 parent aad3fa6 commit 0fbc588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class User implements \JsonSerializable {
public function __construct(array $array) {
$this->id = $array['user_id'];
$this->name = $array['name'];
$this->profileImageUrl = str_replace('http://', 'https://', $array['profile_image_url']);
$this->profileImageUrl = str_replace(['http://', '_normal'], ['https://', '_bigger'], $array['profile_image_url']);
$this->screenName = $array['screen_name'];
}

Expand Down Expand Up @@ -45,7 +45,7 @@ public function getProfileImageUrl() {
}

public function setProfileImageUrl($profileImageUrl) {
$this->profileImageUrl = str_replace('http://', 'https://', $profileImageUrl);
$this->profileImageUrl = str_replace(['http://', '_normal'], ['https://', '_bigger'], $profileImageUrl);
}

public function getScreenName() {
Expand Down

0 comments on commit 0fbc588

Please # to comment.