* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3
* @link http://status.net/
*/
-
class ActivityVerb
{
const POST = 'http://activitystrea.ms/schema/1.0/post';
const UNFAVORITE = 'http://ostatus.org/schema/1.0/unfavorite';
const UNFOLLOW = 'http://ostatus.org/schema/1.0/unfollow';
const LEAVE = 'http://ostatus.org/schema/1.0/leave';
+ const UNTAG = 'http://ostatus.org/schema/1.0/untag';
// For simple profile-update pings; no content to share.
const UPDATE_PROFILE = 'http://ostatus.org/schema/1.0/update-profile';
+
+ static function canonical($verb) {
+ $ns = 'http://activitystrea.ms/schema/1.0/';
+ if (substr($verb, 0, mb_strlen($ns)) == $ns) {
+ return substr($verb, mb_strlen($ns));
+ } else {
+ return $verb;
+ }
+ }
}