diff options
Diffstat (limited to 'lib/activity.php')
-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); } } |