Better check for Diaspora accounts so you can connect them from the /suggest page.

This commit is contained in:
Michael Vogel 2015-01-06 12:31:44 +01:00
parent 5684ba4442
commit a2a393a3c6
3 changed files with 12 additions and 1 deletions

View file

@ -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;
}