Bugfix: "remote self" items weren't posted by connectors

This commit is contained in:
Michael Vogel 2015-09-07 23:14:18 +02:00
parent 1c19bcd322
commit 6088f59c33

View file

@ -1423,6 +1423,9 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa
// Fill the cache field
put_item_in_cache($arr);
if ($notify)
call_hooks('post_local',$arr);
else
call_hooks('post_remote',$arr);
if(x($arr,'cancel')) {
@ -1569,6 +1572,9 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa
$r = q('SELECT * FROM `item` WHERE id = %d', intval($current_post));
if (count($r) == 1) {
if ($notify)
call_hooks('post_local_end', $r[0]);
else
call_hooks('post_remote_end', $r[0]);
} else
logger('item_store: new item not found in DB, id ' . $current_post);