From: Evan Prodromou Date: Mon, 6 Dec 2010 20:51:42 +0000 (-0500) Subject: correctly generate enclosure in Activity::asString() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0c0418bdfbb40f7fae02cca4cf1a09746bae8b3a;p=quix0rs-gnu-social.git correctly generate enclosure in Activity::asString() --- diff --git a/lib/activity.php b/lib/activity.php index 1b4651d89f..e29bc1a25d 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -478,7 +478,8 @@ class Activity foreach ($this->enclosures as $enclosure) { if (is_string($enclosure)) { - $xs->element('link', array('href' => $enclosure)); + $xs->element('link', array('rel' => 'enclosure', + 'href' => $enclosure)); } else { $attributes = array('rel' => 'enclosure', 'href' => $enclosure->url, @@ -487,7 +488,7 @@ class Activity if ($enclosure->title) { $attributes['title'] = $enclosure->title; } - $xs->element('link', array('href' => $enclosure)); + $xs->element('link', $attributes); } }