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"/>
This commit is contained in:
Chimo 2015-09-14 21:25:36 -04:00
parent 404d5781fc
commit 96a7bf2b90

View File

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