mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:50:10 +00:00
faster friend requests (DFRN)
This commit is contained in:
parent
18315a1377
commit
a5125359d8
3 changed files with 19 additions and 11 deletions
|
@ -277,14 +277,15 @@ function dfrn_request_post(&$a) {
|
|||
|
||||
// Canonicalise email-style profile locator
|
||||
|
||||
$url = webfinger_dfrn($url);
|
||||
$hcard = '';
|
||||
$url = webfinger_dfrn($url,$hcard);
|
||||
|
||||
if(substr($url,0,5) === 'stat:') {
|
||||
$network = 'stat';
|
||||
$network = NETWORK_OSTATUS;
|
||||
$url = substr($url,5);
|
||||
}
|
||||
else {
|
||||
$network = 'dfrn';
|
||||
$network = NETWORK_DFRN;
|
||||
}
|
||||
|
||||
logger('dfrn_request: url: ' . $url);
|
||||
|
@ -342,7 +343,7 @@ function dfrn_request_post(&$a) {
|
|||
|
||||
require_once('Scrape.php');
|
||||
|
||||
$parms = scrape_dfrn($url);
|
||||
$parms = scrape_dfrn(($hcard) ? $hcard : $url);
|
||||
|
||||
if(! count($parms)) {
|
||||
notice( t('Profile location is not valid or does not contain profile information.') . EOL );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue