If the nick is missing then take the first part of the name
This commit is contained in:
parent
edfee710fe
commit
b954714464
|
@ -5,11 +5,9 @@
|
||||||
* To-Do:
|
* To-Do:
|
||||||
*
|
*
|
||||||
* - OStatus links with index.php
|
* - OStatus links with index.php
|
||||||
|
* - OStatus alias link
|
||||||
* - Non absolute URL in feeds?
|
* - Non absolute URL in feeds?
|
||||||
* - Check for tumblr feed?
|
|
||||||
* - more logging?
|
|
||||||
* - Workaround for misconfigured Friendica servers?
|
* - Workaround for misconfigured Friendica servers?
|
||||||
* - Check if Hubzilla servers with OStatus are detected correctly
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -135,9 +133,13 @@ class Probe {
|
||||||
if (!isset($data["name"]))
|
if (!isset($data["name"]))
|
||||||
$data["name"] = $data["url"];
|
$data["name"] = $data["url"];
|
||||||
|
|
||||||
if (!isset($data["nick"]))
|
if (!isset($data["nick"])) {
|
||||||
$data["nick"] = strtolower($data["name"]);
|
$data["nick"] = strtolower($data["name"]);
|
||||||
|
|
||||||
|
if (strpos($data['nick'], ' '))
|
||||||
|
$data['nick'] = trim(substr($data['nick'], 0, strpos($data['nick'], ' ')));
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($data["network"]))
|
if (!isset($data["network"]))
|
||||||
$data["network"] = NETWORK_PHANTOM;
|
$data["network"] = NETWORK_PHANTOM;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user