Merge branch 'link-atom-fix' into 'nightly'

atom: <link> urls should be attr, not content

Some activities (ex: repeats and follows) have <link>s like this:
<link rel="alternate" type="text/html">http://example.org</link>

This commit changes them to:
<link rel="alternate" type="text/html" href="http://example.org"/>

See merge request !30
This commit is contained in:
mmn 2015-10-10 20:33:58 +00:00
commit 238d2a3876

View File

@ -579,8 +579,8 @@ class Activity
if (!empty($this->link)) { if (!empty($this->link)) {
$xs->element('link', array('rel' => 'alternate', $xs->element('link', array('rel' => 'alternate',
'type' => 'text/html'), 'type' => 'text/html',
$this->link); 'href' => $this->link));
} }
} }