X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Factivityverb.php;h=513605b620a84356e7c82e2e3ad7c4bf05ff35de;hb=7220b3ddd4a32b947e851c946cb6ad6146bebf7d;hp=5ee68f28804fcda7eba1589f0e4c682d7cad8cdb;hpb=0dbdcf2936a00282114f1368ead2f5edebc6ae61;p=quix0rs-gnu-social.git diff --git a/lib/activityverb.php b/lib/activityverb.php index 5ee68f2880..513605b620 100644 --- a/lib/activityverb.php +++ b/lib/activityverb.php @@ -63,4 +63,13 @@ class ActivityVerb // 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; + } + } }