]> git.mxchange.org Git - friendica.git/commitdiff
Documented some unknown verbs
authorMichael <heluecht@pirati.ca>
Thu, 14 Sep 2017 20:40:05 +0000 (20:40 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 14 Sep 2017 20:40:05 +0000 (20:40 +0000)
include/ostatus.php

index 71693595531ba96304f829eb0d9982468e2d4b1e..45ac8061c922f5ba19037a916fc92f64b1aa15b1 100644 (file)
@@ -373,7 +373,7 @@ class ostatus {
                        $item["verb"] = $xpath->query('activity:verb/text()', $entry)->item(0)->nodeValue;
 
                        /// Delete a message
-                       if ($item["verb"] == "qvitter-delete-notice" || $item["verb"] == ACTIVITY_DELETE) {
+                       if (in_array($item["verb"], array('qvitter-delete-notice', ACTIVITY_DELETE, 'delete'))) {
                                // ignore "Delete" messages (by now)
                                logger("Ignore delete message ".print_r($item, true));
                                continue;
@@ -411,6 +411,8 @@ class ostatus {
                        }
 
                        // http://activitystrea.ms/schema/1.0/rsvp-yes
+                       // http://activitystrea.ms/schema/1.0/unfavorite
+                       // http://mastodon.social/schema/1.0/block
                        if (!in_array($item["verb"], array(ACTIVITY_POST, ACTIVITY_LIKE, ACTIVITY_SHARE))) {
                                logger("Unhandled verb ".$item["verb"]." ".print_r($item, true));
                        }