follow_from_feed issue when called from push

This commit is contained in:
zotlabs 2017-04-19 17:52:15 -07:00
parent 09967598e1
commit 40f6280c48
2 changed files with 2 additions and 2 deletions

View File

@ -946,7 +946,7 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
$datarray['author_xchan'] = ''; $datarray['author_xchan'] = '';
if(activity_match($datarray['verb'],ACTIVITY_FOLLOW) && $datarray['obj_type'] === ACTIVITY_OBJ_PERSON) { if(activity_match($datarray['verb'],ACTIVITY_FOLLOW) && $datarray['obj_type'] === ACTIVITY_OBJ_PERSON) {
$cb = array('item' => $datarray,'channel' => $importer, 'xchan' => null, 'author' => $author, 'caught' => false); $cb = array('item' => $datarray,'channel' => $importer, 'xchan' => [ 'placeholder' => '' ], 'author' => $author, 'caught' => false);
call_hooks('follow_from_feed',$cb); call_hooks('follow_from_feed',$cb);
if($cb['caught']) { if($cb['caught']) {
if($cb['return_code']) if($cb['return_code'])

View File

@ -49,7 +49,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
$arr = array('url' => $url, 'channel' => array()); $arr = array('url' => $url, 'channel' => array());
call_hooks('follow', $arr); call_hooks('follow_init', $arr);
if($arr['channel']['success']) if($arr['channel']['success'])
$ret = $arr['channel']; $ret = $arr['channel'];