poco: Only update the global contacts when there is a network value/Export your own contact as well
parent
105d6a22a4
commit
bc2c046446
|
@ -113,8 +113,10 @@ function poco_load($cid,$uid = 0,$zcid = 0,$url = null) {
|
|||
$gender = $entry->gender;
|
||||
|
||||
if(isset($entry->tags))
|
||||
$keywords = implode(", ", $entry->tags);
|
||||
foreach($entry->tags as $tag)
|
||||
$keywords = implode(", ", $tag);
|
||||
|
||||
if ($network != "") {
|
||||
poco_check($profile_url, $name, $network, $profile_photo, $about, $location, $gender, $keywords, $connect_url, $updated, $cid, $uid, $zcid);
|
||||
|
||||
// Update the Friendica contacts. Diaspora is doing it via a message. (See include/diaspora.php)
|
||||
|
@ -127,7 +129,7 @@ function poco_load($cid,$uid = 0,$zcid = 0,$url = null) {
|
|||
dbesc($gender),
|
||||
dbesc(normalise_link($profile_url)),
|
||||
dbesc(NETWORK_DFRN));
|
||||
|
||||
}
|
||||
}
|
||||
logger("poco_load: loaded $total entries",LOGGER_DEBUG);
|
||||
|
||||
|
|
|
@ -46,8 +46,8 @@ function poco_init(&$a) {
|
|||
|
||||
if($justme)
|
||||
$sql_extra = " AND `contact`.`self` = 1 ";
|
||||
else
|
||||
$sql_extra = " AND `contact`.`self` = 0 ";
|
||||
// else
|
||||
// $sql_extra = " AND `contact`.`self` = 0 ";
|
||||
|
||||
if($cid)
|
||||
$sql_extra = sprintf(" AND `contact`.`id` = %d ",intval($cid));
|
||||
|
|
Loading…
Reference in New Issue