diff options
author | friendica <info@friendica.com> | 2014-05-13 20:58:55 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-13 20:58:55 -0700 |
commit | 2f5bd7e1b3b6df368d3c030828c53a9354ff97cd (patch) | |
tree | 33918a1aa8cca0a902ccf8f2de4ef1f4de386045 /include/zot.php | |
parent | 2c27ba66a5a05a52a6f0144ebd3e65562edba14b (diff) | |
download | volse-hubzilla-2f5bd7e1b3b6df368d3c030828c53a9354ff97cd.tar.gz volse-hubzilla-2f5bd7e1b3b6df368d3c030828c53a9354ff97cd.tar.bz2 volse-hubzilla-2f5bd7e1b3b6df368d3c030828c53a9354ff97cd.zip |
add activity_received hook
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index 9e69aea96..869943a24 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1501,6 +1501,9 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) { $arr['uid'] = $channel['channel_id']; $item_result = item_store($arr); $item_id = $item_result['item_id']; + $parr = array('item_id' => $item_id,'item' => $arr,'sender' => $sender,'channel' => $channel); + call_hooks('activity_received',$parr); + add_source_route($item_id,$sender['hash']); $result[] = array($d['hash'],(($item_id) ? 'posted' : 'storage failed:' . $item_result['message']),$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']); |