summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/activity.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/activity.php b/lib/activity.php
index eb639a5dd..e29bc1a25 100644
--- a/lib/activity.php
+++ b/lib/activity.php
@@ -348,8 +348,6 @@ class Activity
if ($this->verb == ActivityVerb::POST && count($this->objects) == 1) {
- common_debug('Using default object entry notation.');
-
$obj = $this->objects[0];
$xs->element('id', null, $obj->id);
@@ -480,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,
@@ -489,7 +488,7 @@ class Activity
if ($enclosure->title) {
$attributes['title'] = $enclosure->title;
}
- $xs->element('link', array('href' => $enclosure));
+ $xs->element('link', $attributes);
}
}