reference to deprecated function import_author_diaspora in socgraph.php

This commit is contained in:
zotlabs 2017-04-02 21:49:50 -07:00
parent 9a5ce2354d
commit 263efbfe39

View File

@ -122,7 +122,7 @@ function poco_load($xchan = '', $url = null) {
$profile_url = $url['value']; $profile_url = $url['value'];
continue; continue;
} }
if($url['type'] == 'zot' || $url['type'] == 'diaspora' || $url['type'] == 'friendica') { if($url['type'] == 'zot') {
$network = $url['type']; $network = $url['type'];
$address = str_replace('acct:' , '', $url['value']); $address = str_replace('acct:' , '', $url['value']);
continue; continue;
@ -163,12 +163,6 @@ function poco_load($xchan = '', $url = null) {
continue; continue;
} }
} }
else {
$x = import_author_diaspora(array('address' => $address));
if(! $x) {
continue;
}
}
} }
else { else {
continue; continue;
@ -564,8 +558,6 @@ function poco($a,$extended = false) {
if($fields_ret['urls']) { if($fields_ret['urls']) {
$entry['urls'] = array(array('value' => $rr['xchan_url'], 'type' => 'profile')); $entry['urls'] = array(array('value' => $rr['xchan_url'], 'type' => 'profile'));
$network = $rr['xchan_network']; $network = $rr['xchan_network'];
if(strpos($network,'friendica') !== false)
$network = 'friendica';
if($rr['xchan_addr']) if($rr['xchan_addr'])
$entry['urls'][] = array('value' => 'acct:' . $rr['xchan_addr'], 'type' => $network); $entry['urls'][] = array('value' => 'acct:' . $rr['xchan_addr'], 'type' => $network);
} }