ensure connections have a name
This commit is contained in:
parent
f2889d24e6
commit
2d94a038a5
@ -1137,6 +1137,8 @@ function discover_by_webbie($webbie) {
|
|||||||
if($hcard) {
|
if($hcard) {
|
||||||
$vcard = scrape_vcard($hcard);
|
$vcard = scrape_vcard($hcard);
|
||||||
$vcard['nick'] = substr($webbie,0,strpos($webbie,'@'));
|
$vcard['nick'] = substr($webbie,0,strpos($webbie,'@'));
|
||||||
|
if(! $vcard['fn'])
|
||||||
|
$vcard['fn'] = $webbie;
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
|
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
|
||||||
|
Reference in New Issue
Block a user