X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoco.php;h=1ec5b2d4e1b07e1c91157cfadc31c28e59c30d14;hb=af42e5e481832353550aea9b4373fba3c7ae1a6a;hp=0a1b392169b22dbf3e5748bb4ebbbebc8aa65a25;hpb=04dceb955109eed93db5da1bd6c6d4cdd411a9be;p=friendica.git diff --git a/mod/poco.php b/mod/poco.php index 0a1b392169..1ec5b2d4e1 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -1,4 +1,6 @@ false, 'tags' => false, 'address' => false, + 'contactType' => false, 'generation' => false ); @@ -207,6 +212,9 @@ function poco_init(&$a) { if (($rr['keywords'] == "") AND isset($rr['pub_keywords'])) $rr['keywords'] = $rr['pub_keywords']; + if (isset($rr['account-type'])) + $rr['contact-type'] = $rr['account-type']; + $about = Cache::get("about:".$rr['updated'].":".$rr['nurl']); if (is_null($about)) { $about = bbcode($rr['about'], false, false); @@ -300,6 +308,9 @@ function poco_init(&$a) { $entry['address']['country'] = $rr['pcountry']; } + if($fields_ret['contactType']) + $entry['contactType'] = intval($rr['contact-type']); + $ret['entry'][] = $entry; } }