diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-21 12:48:16 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-21 12:48:16 -0700 |
commit | 42dd460d3b9aa9a8ad147d00de9b6c8e209ab4e9 (patch) | |
tree | a11a63ee2e6fd349a2ee2b44e89791530b9c16ed /lib/activityobject.php | |
parent | d342899677d208d7e300b29ad3a8d053e4c6f704 (diff) | |
parent | 1bc45e191d83633e00df9355aaeda3680d42f777 (diff) |
Merge branch 'master' into 0.9.x
Diffstat (limited to 'lib/activityobject.php')
-rw-r--r-- | lib/activityobject.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/activityobject.php b/lib/activityobject.php index 0fc06948b..95615d581 100644 --- a/lib/activityobject.php +++ b/lib/activityobject.php @@ -428,6 +428,17 @@ class ActivityObject $alink->height = $size; $alink->width = $size; $alink->url = Avatar::defaultImage($size); + + if ($size == AVATAR_PROFILE_SIZE) { + // Hack for Twitter import: we don't have a 96x96 image, + // but we do have a 73x73 image. For now, fake it with that. + $avatar = $profile->getAvatar(73); + if ($avatar) { + $alink = AvatarLink::fromAvatar($avatar); + $alink->height= $size; + $alink->width = $size; + } + } } $object->avatarLinks[] = $alink; |