Skip to content

Commit

Permalink
Merge pull request #1233 from annando/avatar
Browse files Browse the repository at this point in the history
Birdavatar: Fix log function / Twitter: Fix avatar address
  • Loading branch information
MrPetovan authored Jan 30, 2022
2 parents de91e04 + d527848 commit f9ff50b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion birdavatar/birdavatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function birdavatar_install()
Hook::register('addon_settings', __FILE__, 'birdavatar_addon_settings');
Hook::register('addon_settings_post', __FILE__, 'birdavatar_addon_settings_post');

Logger::log('registered birdavatar');
Logger::info('registered birdavatar');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion twitter/twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ function twitter_fetchtimeline(App $a, $uid)

function twitter_fix_avatar($avatar)
{
$new_avatar = str_replace("_normal.", ".", $avatar);
$new_avatar = str_replace("_normal.", "_400x400.", $avatar);

$info = Images::getInfoFromURLCached($new_avatar);
if (!$info) {
Expand Down

0 comments on commit f9ff50b

Please sign in to comment.