X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Factivityverb.php;h=513605b620a84356e7c82e2e3ad7c4bf05ff35de;hb=10f2cde0b1d75fa023b00400162cb525e8719514;hp=264351308b55b60c25139abb50a81b7e286d243e;hpb=99194e03fa50b61f99164674afc949b4bbefd44a;p=quix0rs-gnu-social.git diff --git a/lib/activityverb.php b/lib/activityverb.php index 264351308b..513605b620 100644 --- a/lib/activityverb.php +++ b/lib/activityverb.php @@ -59,7 +59,17 @@ class ActivityVerb 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; + } + } }