allow plugin to abort message posting, fix half-duplex D* relationship

This commit is contained in:
friendica 2012-01-30 20:49:54 -08:00
parent 95878a3e84
commit 4993f4f1d6
3 changed files with 22 additions and 0 deletions

View file

@ -814,6 +814,11 @@ function item_store($arr,$force_parent = false) {
call_hooks('post_remote',$arr);
if(x($arr,'cancel')) {
logger('item_store: post cancelled by plugin.');
return 0;
}
dbesc_array($arr);
logger('item_store: ' . print_r($arr,true), LOGGER_DATA);