Bugfix in FB-sharing header for empty profile avatar

This commit is contained in:
Brion Vibber 2010-10-01 14:42:12 -07:00
parent 33b16be0a4
commit 5c19d33b27

View File

@ -303,7 +303,7 @@ class ShownoticeAction extends OwnerDesignAction
$avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE);
$avatarUrl = ($avatar) ?
$avatar->displayUrl() :
Avatar::defaultImage($avatar_size);
Avatar::defaultImage(AVATAR_PROFILE_SIZE);
$this->element('meta', array('property' => 'og:image',
'content' => $avatarUrl));
$this->element('meta', array('property' => 'og:description',