aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-10 01:21:18 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-10 01:21:18 -0700
commit2d94a038a5055e7df76799f8fe110991cedbee88 (patch)
treea1c81194677a17193185a8901e42a46b03a069f0
parentf2889d24e6bef4c530b233d0b4359d140574b57b (diff)
downloadvolse-hubzilla-2d94a038a5055e7df76799f8fe110991cedbee88.tar.gz
volse-hubzilla-2d94a038a5055e7df76799f8fe110991cedbee88.tar.bz2
volse-hubzilla-2d94a038a5055e7df76799f8fe110991cedbee88.zip
ensure connections have a name
-rw-r--r--include/network.php2
1 files changed, 2 insertions, 0 deletions
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",