summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-21 12:46:16 -0700
committerBrion Vibber <brion@pobox.com>2010-09-21 12:46:16 -0700
commit1bc45e191d83633e00df9355aaeda3680d42f777 (patch)
treeab95350ba90e453fdae074ac1b9c06adf511b343 /lib
parent28fdc733a7e90146ae7803d61c352c1758285bd8 (diff)
parent94de78fa0f795e7eecb8dc59a3abfeaf131f05c3 (diff)
Merge branch 'twitter-avatar'
Diffstat (limited to 'lib')
-rw-r--r--lib/activityobject.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/activityobject.php b/lib/activityobject.php
index 677a48197..444577775 100644
--- a/lib/activityobject.php
+++ b/lib/activityobject.php
@@ -430,6 +430,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;