From: Hypolite Petovan Date: Tue, 11 Apr 2017 02:20:03 +0000 (-0400) Subject: Ignore Activity Streams `delete` messages from Mastodon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ca7c2bfa00ba7ece74af5f974c4c6fef61c823cc;p=friendica.git Ignore Activity Streams `delete` messages from Mastodon --- diff --git a/boot.php b/boot.php index 1d8a9e7f76..070dcf7266 100644 --- a/boot.php +++ b/boot.php @@ -382,6 +382,7 @@ define ( 'ACTIVITY_UPDATE', NAMESPACE_ACTIVITY_SCHEMA . 'update' ); define ( 'ACTIVITY_TAG', NAMESPACE_ACTIVITY_SCHEMA . 'tag' ); define ( 'ACTIVITY_FAVORITE', NAMESPACE_ACTIVITY_SCHEMA . 'favorite' ); define ( 'ACTIVITY_SHARE', NAMESPACE_ACTIVITY_SCHEMA . 'share' ); +define ( 'ACTIVITY_DELETE', NAMESPACE_ACTIVITY_SCHEMA . 'delete' ); define ( 'ACTIVITY_POKE', NAMESPACE_ZOT . '/activity/poke' ); define ( 'ACTIVITY_MOOD', NAMESPACE_ZOT . '/activity/mood' ); diff --git a/include/ostatus.php b/include/ostatus.php index 9b78495093..7dd3c8955e 100644 --- a/include/ostatus.php +++ b/include/ostatus.php @@ -367,7 +367,7 @@ class ostatus { /// @TODO /// Delete a message - if ($item["verb"] == "qvitter-delete-notice") { + if ($item["verb"] == "qvitter-delete-notice" || $item["verb"] == ACTIVITY_DELETE) { // ignore "Delete" messages (by now) logger("Ignore delete message ".print_r($item, true)); continue;