}
// 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']])) {