From a197215cf2bd3ab010b8cebdde68c7de4a71e498 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Sat, 28 Sep 2019 09:50:49 +0200 Subject: [PATCH] Mailstream: do not send "announce" messages --- mailstream/mailstream.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index e4abc597..f23cf885 100644 --- a/mailstream/mailstream.php +++ b/mailstream/mailstream.php @@ -102,19 +102,28 @@ function mailstream_generate_id($a, $uri) { function mailstream_post_hook(&$a, &$item) { if (!PConfig::get($item['uid'], 'mailstream', 'enabled')) { + Logger::debug('mailstream: not enabled for item ' . $item['id']); return; } if (!$item['uid']) { + Logger::debug('mailstream: no uid for item ' . $item['id']); return; } if (!$item['contact-id']) { + Logger::debug('mailstream: no contact-id for item ' . $item['id']); return; } if (!$item['uri']) { + Logger::debug('mailstream: no uri for item ' . $item['id']); + return; + } + if (!$item['plink']) { + Logger::debug('mailstream: no plink for item ' . $item['id']); return; } if (PConfig::get($item['uid'], 'mailstream', 'nolikes')) { if ($item['verb'] == ACTIVITY_LIKE) { + Logger::debug('mailstream: like item ' . $item['id']); return; } } -- 2.39.5