ensure connections have a name

This commit is contained in:
redmatrix 2015-09-10 01:21:18 -07:00
parent f2889d24e6
commit 2d94a038a5

View File

@ -1137,6 +1137,8 @@ function discover_by_webbie($webbie) {
if($hcard) {
$vcard = scrape_vcard($hcard);
$vcard['nick'] = substr($webbie,0,strpos($webbie,'@'));
if(! $vcard['fn'])
$vcard['fn'] = $webbie;
}
$r = q("select * from xchan where xchan_hash = '%s' limit 1",