Merge pull request #9103 from annando/avoid-dfrn-announce
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 31 Aug 2020 05:15:41 +0000 (07:15 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Aug 2020 05:15:41 +0000 (07:15 +0200)
Issue 9094: Avoid DFRN announces

src/Worker/Delivery.php

index 9027598..eb6ae09 100644 (file)
@@ -83,6 +83,10 @@ class Delivery
                        $itemdata = Model\Item::select([], $condition, $params);
 
                        while ($item = Model\Item::fetch($itemdata)) {
+                               if ($item['verb'] == Activity::ANNOUNCE) {
+                                       continue;
+                               }
+       
                                if ($item['id'] == $parent_id) {
                                        $parent = $item;
                                }