]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activityobject.php
Switch order of html/text for StatusNet backwards compatibility
[quix0rs-gnu-social.git] / lib / activityobject.php
index e2869f9ae42da861a8b839541880fac5f431fa81..530c9aba15c44c7f45266e6ed9fb59811720300f 100644 (file)
@@ -698,13 +698,13 @@ class ActivityObject
                 // XXX: assuming HTML content here
                 $xo->element(
                     ActivityUtils::CONTENT,
-                    array('type' => 'text'),
-                    html_entity_decode(strip_tags($this->content), ENT_QUOTES, 'UTF-8')
+                    array('type' => 'html'),
+                    common_xml_safe_str($this->content)
                 );
                 $xo->element(
                     ActivityUtils::CONTENT,
-                    array('type' => 'html'),
-                    common_xml_safe_str($this->content)
+                    array('type' => 'text'),
+                    html_entity_decode(strip_tags($this->content), ENT_QUOTES, 'UTF-8')
                 );
             }