X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fitems.php;h=fa4f3290b142090168fbd36222e13d9f4b75840f;hb=fd5f151a7232d2b35dd823ec1763420eea97a831;hp=8d95c3552973498e575b428819f72bebf67af1ae;hpb=17858bd8443e0384602b71478fd0b1a00cfeafb1;p=friendica.git diff --git a/include/items.php b/include/items.php index 8d95c35529..fa4f3290b1 100644 --- a/include/items.php +++ b/include/items.php @@ -955,12 +955,14 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa $r = q('SELECT * FROM `item` WHERE `id` = %d', intval($current_post)); if ((dbm::is_result($r)) && (count($r) == 1)) { - if ($notify) + if ($notify) { call_hooks('post_local_end', $r[0]); - else + } else { call_hooks('post_remote_end', $r[0]); - } else + } + } else { logger('item_store: new item not found in DB, id ' . $current_post); + } } if ($arr['parent-uri'] === $arr['uri']) { @@ -994,8 +996,9 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa check_item_notification($current_post, $uid); - if ($notify) + if ($notify) { proc_run(PRIORITY_HIGH, "include/notifier.php", $notify_type, $current_post); + } return $current_post; }