From ca7c2bfa00ba7ece74af5f974c4c6fef61c823cc Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 10 Apr 2017 22:20:03 -0400 Subject: [PATCH] Ignore Activity Streams `delete` messages from Mastodon --- boot.php | 1 + include/ostatus.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5