From: Michael Date: Tue, 10 Jan 2017 07:58:17 +0000 (+0000) Subject: We should check for the item, not the parent. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c44f859edfe4281eb19e4a2ab00745abd4853c41;p=friendica.git We should check for the item, not the parent. --- diff --git a/include/delivery.php b/include/delivery.php index 23fe859b6b..f1e570764d 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -174,7 +174,7 @@ function delivery_run(&$argv, &$argc){ // When commenting too fast after delivery, a post wasn't recognized as top level post. // The count then showed more than one entry. The additional check should help. // The check for the "count" should be superfluous, but I'm not totally sure by now, so we keep it. - if ((($items[0]['id'] = $parent_id) OR (count($items) == 1)) AND ($items[0]['uri'] === $items[0]['parent-uri'])) { + if ((($items[0]['id'] = $item_id) OR (count($items) == 1)) AND ($items[0]['uri'] === $items[0]['parent-uri'])) { logger('delivery: top level post'); $top_level = true; }