diff options
author | Evan Prodromou <evan@status.net> | 2010-12-06 15:51:42 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-12-06 15:51:42 -0500 |
commit | 0c0418bdfbb40f7fae02cca4cf1a09746bae8b3a (patch) | |
tree | 986df9a67488e65eaa09af37bdf0ff1362d8ccd3 | |
parent | 1f0949f9ac84f07519d2d0704917f22dad1c2de2 (diff) |
correctly generate enclosure in Activity::asString()
-rw-r--r-- | lib/activity.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/activity.php b/lib/activity.php index 1b4651d89..e29bc1a25 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); } } |