]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activity.php
ostatus:conversation element instead of link rel=""
[quix0rs-gnu-social.git] / lib / activity.php
index 6fd04c4db1709e16862475de53ad6da4c463b090..2d3930df0d85ec46207e6ff63fa9790556f3f664 100644 (file)
@@ -627,6 +627,14 @@ class Activity
             if (!empty($this->context->conversation)) {
                 $xs->element('link', array('rel' => ActivityContext::CONVERSATION,
                                            'href' => $this->context->conversation));
+                $xs->element(ActivityContext::CONVERSATION, null, $this->context->conversation);
+                /* Since we use XMLWriter we just use the previously hardcoded prefix for ostatus,
+                    otherwise we should use something like this:
+                $xs->elementNS(array(ActivityContext::OSTATUS => 'ostatus'),    // namespace
+                                'conversation',  // tag (or the element name from ActivityContext::CONVERSATION)
+                                null,   // attributes
+                                $this->context->conversation);  // content
+                */
             }
 
             foreach ($this->context->attention as $attnURI=>$type) {