diff options
author | friendica <info@friendica.com> | 2015-02-25 03:14:49 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-25 03:16:43 -0800 |
commit | 1a071ea4f07d4e3a1dd4199f6523d61f8bbc69b8 (patch) | |
tree | fccce94411855a01d361cd3517b1ecd38ac0ff66 /include | |
parent | 2a2cc309ce2f9a991978d7dda841663825a95370 (diff) | |
download | volse-hubzilla-1a071ea4f07d4e3a1dd4199f6523d61f8bbc69b8.tar.gz volse-hubzilla-1a071ea4f07d4e3a1dd4199f6523d61f8bbc69b8.tar.bz2 volse-hubzilla-1a071ea4f07d4e3a1dd4199f6523d61f8bbc69b8.zip |
call post_local hooks prior to storing a post that is going to be sourced. There are some fields in the actual stored item that may change when we start the second delivery chain so a few plugins may not deal with these items correctly. Since we only source public items these effects will be slight.
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 2 | ||||
-rw-r--r-- | include/zot.php | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index 18ce149ed..b1e17b171 100755 --- a/include/items.php +++ b/include/items.php @@ -3136,6 +3136,8 @@ function start_delivery_chain($channel,$item,$item_id,$parent) { intval($item_id) ); + + if($r) proc_run('php','include/notifier.php','tgroup',$item_id); else diff --git a/include/zot.php b/include/zot.php index 6068c5e8c..59d158a0b 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1680,6 +1680,13 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false,$reque else { $arr['aid'] = $channel['channel_account_id']; $arr['uid'] = $channel['channel_id']; + + // if it's a sourced post, call the post_local hooks as if it were + // posted locally so that crosspost connectors will be triggered. + + if(check_item_source($arr['uid'],$arr)) + call_hooks('post_local',$arr); + $item_result = item_store($arr); $item_id = 0; if($item_result['success']) { |