This commit is contained in:
friendica 2012-11-01 02:00:25 -07:00
parent d4657c89c2
commit 3f7530417a
2 changed files with 7 additions and 4 deletions

View file

@ -31,7 +31,7 @@ function new_contact($uid,$url,$channel,$interactive = false) {
call_hooks('follow', $arr);
if($arr['channel']['success']))
if($arr['channel']['success'])
$ret = $arr['channel'];
else
$ret = zot_finger($url,$channel,false);
@ -102,7 +102,7 @@ function new_contact($uid,$url,$channel,$interactive = false) {
/*
$r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `nurl`, `addr`, `alias`, `batch`, `notify`, `poll`, `poco`, `name`, `nick`, `photo`, `network`, `pubkey`, `rel`, `priority`,
`writable`, `hidden`, `blocked`, `readonly`, `pending` )
@ -174,9 +174,12 @@ function new_contact($uid,$url,$channel,$interactive = false) {
// pull feed and consume it
*/
proc_run('php',"include/poller.php","$contact_id");
$result['success'] = true;
return $result;
}

View file

@ -60,7 +60,7 @@ function zfinger_init(&$a) {
$ret['name'] = $e['xchan_name'];
$ret['name_updated'] = $e['xchan_name_date'];
$ret['address'] = $e['xchan_addr'];
$ret['photo_mimetype'] = $e['xchan_photo_mimetype'],
$ret['photo_mimetype'] = $e['xchan_photo_mimetype'];
$ret['photo'] = $e['xchan_photo_l'];
$ret['photo_updated'] = $e['xchan_photo_date'];
$ret['url'] = $e['xchan_url'];