]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activityobject.php
Use simple relative object and verb references
[quix0rs-gnu-social.git] / lib / activityobject.php
index 17753f0df4aefe86371bf087efa08cbf5d8608e5..7847a5d640a52b624d24e993d1026078ad2cc311 100644 (file)
@@ -683,7 +683,10 @@ class ActivityObject
         }
 
         // objectType
-        $object['type'] = $this->type;
+        //
+        // We can probably use the whole schema URL here but probably the
+        // relative simple name is easier to parse
+        $object['type'] = substr($this->type, strrpos($this->type, '/') + 1);
 
         // summary
         $object['summary'] = $this->summary;