We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 97bd7e22 authored by Evan Prodromou's avatar Evan Prodromou

correct creation of avatar links for RSS and Posterous elements

parent 11a86d04
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment