]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ActivityObject has attribute for other elements
authorEvan Prodromou <evan@status.net>
Sun, 19 Dec 2010 15:16:44 +0000 (10:16 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 19 Dec 2010 15:16:44 +0000 (10:16 -0500)
lib/activityobject.php

index 536e0213347d0c4ec39261aeff78d9df61a03c74..32d9a9aa4ffb89877e6ed648902234deccd41bd1 100644 (file)
@@ -106,6 +106,8 @@ class ActivityObject
     public $largerImage;
     public $description;
 
+       public $extra; // For extra stuff
+
     /**
      * Constructor
      *
@@ -565,6 +567,11 @@ class ActivityObject
             $xs->raw($this->poco->asString());
         }
 
+        foreach ($this->extra as $el) {
+            list($tag, $attrs, $content) = $el;
+            $xs->element($tag, $attrs, $content);
+        }
+
         $xs->elementEnd($tag);
 
         return $xs->getString();