From 2d94a038a5055e7df76799f8fe110991cedbee88 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 10 Sep 2015 01:21:18 -0700 Subject: ensure connections have a name --- include/network.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/network.php') diff --git a/include/network.php b/include/network.php index 75729d6e4..d3320f3ee 100644 --- a/include/network.php +++ b/include/network.php @@ -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", -- cgit v1.2.3