aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-30 20:49:54 -0800
committerfriendica <info@friendica.com>2012-01-30 20:49:54 -0800
commit4993f4f1d63bd82a6964d6a55bb364d2c7514df4 (patch)
tree33780bc55bf339db37e3fb55a68c8c85aa584578 /include
parent95878a3e848f2498b2cb4ac39c7dd5879456e913 (diff)
downloadvolse-hubzilla-4993f4f1d63bd82a6964d6a55bb364d2c7514df4.tar.gz
volse-hubzilla-4993f4f1d63bd82a6964d6a55bb364d2c7514df4.tar.bz2
volse-hubzilla-4993f4f1d63bd82a6964d6a55bb364d2c7514df4.zip
allow plugin to abort message posting, fix half-duplex D* relationship
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 62f1f2ce5..ba95919a6 100755
--- a/include/items.php
+++ b/include/items.php
@@ -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);