do not mail dislike messages

pull/1473/head
Matthew Exon 2024-03-03 17:47:42 +08:00 committed by heluecht
parent 53be7d9423
commit 58cb933779
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,10 @@ function mailstream_post_hook(array &$item)
Logger::debug('mailstream: like item ' . $item['id']); Logger::debug('mailstream: like item ' . $item['id']);
return; return;
} }
if ($item['verb'] == Activity::DISLIKE) {
Logger::debug('mailstream: dislike item ' . $item['id']);
return;
}
} }
$message_id = mailstream_generate_id($item['uri']); $message_id = mailstream_generate_id($item['uri']);