aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-01 16:08:07 -0700
committerFriendika <info@friendika.com>2011-11-01 16:08:07 -0700
commit573670fa0c8a3d8f111430985d263499b79a6ac0 (patch)
tree901718877c62abe3d6cc3bfb2050fa6a5126dac3 /include/diaspora.php
parentae7425dadb2e8e2911f405631e332965066a916b (diff)
downloadvolse-hubzilla-573670fa0c8a3d8f111430985d263499b79a6ac0.tar.gz
volse-hubzilla-573670fa0c8a3d8f111430985d263499b79a6ac0.tar.bz2
volse-hubzilla-573670fa0c8a3d8f111430985d263499b79a6ac0.zip
more social graph stuff
Diffstat (limited to 'include/diaspora.php')
-rw-r--r--include/diaspora.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index ccfa799ad..f362a3478 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -451,13 +451,14 @@ function diaspora_request($importer,$xml) {
$batch = (($ret['batch']) ? $ret['batch'] : implode('/', array_slice(explode('/',$ret['url']),0,3)) . '/receive/public');
- $r = q("INSERT INTO `contact` (`uid`, `network`,`addr`,`created`,`url`,`batch`,`name`,`nick`,`photo`,`pubkey`,`notify`,`poll`,`blocked`,`priority`)
- VALUES ( %d, '%s', '%s', '%s','%s','%s','%s','%s','%s','%s','%s','%s',%d,%d) ",
+ $r = q("INSERT INTO `contact` (`uid`, `network`,`addr`,`created`,`url`,`nurl`,`batch`,`name`,`nick`,`photo`,`pubkey`,`notify`,`poll`,`blocked`,`priority`)
+ VALUES ( %d, '%s', '%s', '%s', '%s','%s','%s','%s','%s','%s','%s','%s','%s',%d,%d) ",
intval($importer['uid']),
dbesc($ret['network']),
dbesc($ret['addr']),
datetime_convert(),
dbesc($ret['url']),
+ dbesc(normalise_link($ret['url'])),
dbesc($batch),
dbesc($ret['name']),
dbesc($ret['nick']),