]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
getVerb function in Notice class
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 18 Jan 2016 21:02:05 +0000 (22:02 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 18 Jan 2016 21:02:05 +0000 (22:02 +0100)
classes/Notice.php

index 7524b9ff693a928f1ea8c5ca0f3c751411dce08c..9a39c6dc63a254ea4228f527e73899c714931ffd 100644 (file)
@@ -277,6 +277,11 @@ class Notice extends Managed_DataObject
         return $this->created;
     }
 
+    public function getVerb($make_relative=false)
+    {
+        return ActivityUtils::resolveUri($this->verb, $make_relative);
+    }
+
     /*
      * Get the original representation URL of this notice.
      *