summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-20 17:18:24 -0500
committerEvan Prodromou <evan@status.net>2010-03-20 17:18:24 -0500
commit97bd7e22da893ac2d93e66d7f4747358713e739b (patch)
tree9eed647f0fc72f015b83872f7c7132c321f9a1f1 /lib
parent11a86d046e30a7fe76d242c5dd2e54ed9a808ab2 (diff)
correct creation of avatar links for RSS and Posterous elements
Diffstat (limited to 'lib')
-rw-r--r--lib/activityobject.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/activityobject.php b/lib/activityobject.php
index 18e3e21dd..e5cea727b 100644
--- a/lib/activityobject.php
+++ b/lib/activityobject.php
@@ -297,7 +297,10 @@ class ActivityObject
$imageEl = ActivityUtils::child($el, Activity::IMAGE, Activity::RSS);
if (!empty($imageEl)) {
- $obj->avatarLinks[] = ActivityUtils::childContent($imageEl, Activity::URL, Activity::RSS);
+ $url = ActivityUtils::childContent($imageEl, Activity::URL, Activity::RSS);
+ $al = new AvatarLink();
+ $al->url = $url;
+ $obj->avatarLinks[] = $al;
}
return $obj;
@@ -312,7 +315,9 @@ class ActivityObject
$userImage = ActivityUtils::childContent($el, self::USERIMAGE, self::POSTEROUS);
if (!empty($userImage)) {
- $obj->avatarLinks[] = $userImage;
+ $al = new AvatarLink();
+ $al->url = $userImage;
+ $obj->avatarLinks[] = $al;
}
$obj->link = ActivityUtils::childContent($el, self::PROFILEURL, self::POSTEROUS);