mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:10:11 +00:00
Better check for Diaspora accounts so you can connect them from the /suggest page.
This commit is contained in:
parent
5684ba4442
commit
a2a393a3c6
3 changed files with 12 additions and 1 deletions
|
@ -750,5 +750,14 @@ function probe_url($url, $mode = PROBE_NORMAL) {
|
|||
|
||||
logger('probe_url: ' . print_r($result,true), LOGGER_DEBUG);
|
||||
|
||||
// Trying if it maybe a diaspora account
|
||||
if ($result['network'] == NETWORK_FEED) {
|
||||
require_once('include/bbcode.php');
|
||||
$address = GetProfileUsername($url, "", true);
|
||||
$result2 = probe_url($address, $mode);
|
||||
if ($result2['network'] != "")
|
||||
$result = $result2;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue