Merge pull request #1233 from annando/avatar
Birdavatar: Fix log function / Twitter: Fix avatar address
This commit is contained in:
commit
f9ff50b2cb
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue