]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activity.php
Don't add content as title for notes
[quix0rs-gnu-social.git] / lib / activity.php
index b8c94262685473fa7c8acae82d576bb629a42b0c..2ec2176d39f735d8140e5c5959fbd1a75491136d 100644 (file)
@@ -589,7 +589,13 @@ class Activity
 
         } else {
             $xs->element('id', null, $this->id);
-            $xs->element('title', null, $this->title);
+
+            if ($this->title) {
+                $xs->element('title', null, $this->title);
+            } else {
+                // Require element
+                $xs->element('title', null, "");
+            }
 
             $xs->element('content', array('type' => 'html'), $this->content);