From 0c0418bdfbb40f7fae02cca4cf1a09746bae8b3a Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 6 Dec 2010 15:51:42 -0500 Subject: [PATCH] correctly generate enclosure in Activity::asString() --- lib/activity.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.39.5