]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add objectType, content to activity objects in JSON
authorEvan Prodromou <evan@status.net>
Sat, 31 Dec 2011 09:56:26 +0000 (01:56 -0800)
committerEvan Prodromou <evan@status.net>
Sat, 31 Dec 2011 09:56:26 +0000 (01:56 -0800)
lib/activityobject.php

index 7204980d40b8b505554935a2730370179eefec34..4c11be85979a75ceb7dbc2facbbc3d858a5e9145 100644 (file)
@@ -692,9 +692,6 @@ class ActivityObject
 
             // id
             $object['id'] = $this->id;
-            //
-            // XXX: Should we use URL here? or a crazy tag URI?
-            $object['id'] = $this->id;
 
             if ($this->type == ActivityObject::PERSON
                 || $this->type == ActivityObject::GROUP) {
@@ -737,14 +734,17 @@ class ActivityObject
             // We can probably use the whole schema URL here but probably the
             // relative simple name is easier to parse
             // @fixme this breaks extension URIs
-            $object['type'] = substr($this->type, strrpos($this->type, '/') + 1);
-
-            // published (probably don't need. Might be useful for repeats.)
+            $object['objectType'] = substr($this->type, strrpos($this->type, '/') + 1);
 
             // summary
             $object['summary'] = $this->summary;
 
-            // udpated (probably don't need this)
+            // summary
+            $object['content'] = $this->content;
+
+            // published (probably don't need. Might be useful for repeats.)
+
+            // updated (probably don't need this)
 
             // TODO: upstreamDuplicates