From b9b84d10eb72ebee02d427a755bc7bd8c3f57bb6 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Sun, 3 Mar 2024 17:47:42 +0800 Subject: [PATCH] do not mail dislike messages --- mailstream/mailstream.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 968ee4c0..b513cf36 100644 --- a/mailstream/mailstream.php +++ b/mailstream/mailstream.php @@ -169,6 +169,10 @@ function mailstream_post_hook(array &$item) Logger::debug('mailstream: like item ' . $item['id']); return; } + if ($item['verb'] == Activity::DISLIKE) { + Logger::debug('mailstream: dislike item ' . $item['id']); + return; + } } $message_id = mailstream_generate_id($item['uri']);