]> git.mxchange.org Git - friendica-addons.git/commitdiff
do not mail dislike messages
authorMatthew Exon <git.mexon@spamgourmet.com>
Sun, 3 Mar 2024 09:47:42 +0000 (17:47 +0800)
committerheluecht <heluecht@noreply.git.friendi.ca>
Sun, 3 Mar 2024 12:05:27 +0000 (13:05 +0100)
mailstream/mailstream.php

index 968ee4c025c94cf4b2c79ffc7de31a43fda0f7f0..b513cf367b686d1800b7535e19f53f1d9493bfc2 100644 (file)
@@ -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']);