]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
atom: <link> urls should be attr, not content
authorChimo <chimo@chromic.org>
Tue, 15 Sep 2015 01:25:36 +0000 (21:25 -0400)
committerChimo <chimo@chromic.org>
Tue, 15 Sep 2015 01:34:56 +0000 (21:34 -0400)
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"/>

lib/activity.php

index 2d3930df0d85ec46207e6ff63fa9790556f3f664..93d815e8b4eac9967fd921f21b1177e27465b361 100644 (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));
             }
 
         }