]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activity.php
auth fix
[quix0rs-gnu-social.git] / lib / activity.php
index e29bc1a25da093b812bcf28beb194e19ca0b3e4b..c3a984a7b994f289995dccf521ee0e4eb8b83fda 100644 (file)
@@ -327,7 +327,7 @@ class Activity
         return null;
     }
 
-    function asString($namespace=false, $author=true)
+    function asString($namespace=false, $author=true, $source=false)
     {
         $xs = new XMLStringer(true);
 
@@ -494,7 +494,7 @@ class Activity
 
         // Info on the source feed
 
-        if (!empty($this->source)) {
+        if ($source && !empty($this->source)) {
             $xs->elementStart('source');
            
             $xs->element('id', null, $this->source->id);
@@ -549,7 +549,9 @@ class Activity
 
         $xs->elementEnd('entry');
 
-        return $xs->getString();
+        $str = $xs->getString();
+       
+        return $str;
     }
 
     private function _child($element, $tag, $namespace=self::SPEC)