]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/activity.php
Use simple relative object and verb references
[quix0rs-gnu-social.git] / lib / activity.php
index e6fefca28f9a9523a9dfeb037d7e2117674ca899..e1d5e25e5ee71a69e6b2e053636bb7aefc54e301 100644 (file)
@@ -383,7 +383,10 @@ class Activity
         // updatedTime <-- should we use? spec says activity MAY have this
 
         // verb
-        $activity['verb'] = $this->verb;
+        //
+        // We can probably use the whole schema URL here but probably the
+        // relative simple name is easier to parse
+        $activity['verb'] = substr($this->verb, strrpos($this->verb, '/') + 1);
 
         // TODO: extensions (ActivityContext, OStatus stuff, etc.)