]> git.mxchange.org Git - friendica.git/commitdiff
Remove an "if"
authorMichael <heluecht@pirati.ca>
Mon, 28 Sep 2020 14:13:14 +0000 (14:13 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 28 Sep 2020 14:13:14 +0000 (14:13 +0000)
include/conversation.php

index 0ceb9e068ceb7d58f57de918ea557829b2e8094e..b984c3da2e2a9caaafc635b42d870d4e659826fd 100644 (file)
@@ -1006,10 +1006,9 @@ function builtin_activity_puller($item, &$conv_responses) {
                        }
 
                        // Skip when the causer of the parent is the same than the author of the announce
-                       if ($verb == Activity::ANNOUNCE) {
-                               if (Item::exists(['uri' => $item['thr-parent'], 'uid' => $item['uid'], 'causer-id' => $item['author-id'], 'gravity' => GRAVITY_PARENT])) {
-                                       continue;
-                               }
+                       if (($verb == Activity::ANNOUNCE) && Item::exists(['uri' => $item['thr-parent'],
+                               'uid' => $item['uid'], 'causer-id' => $item['author-id'], 'gravity' => GRAVITY_PARENT])) {
+                               continue;
                        }
 
                        if (!isset($conv_responses[$mode][$item['thr-parent']])) {