aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_request.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 /mod/dfrn_request.php
parentae7425dadb2e8e2911f405631e332965066a916b (diff)
downloadvolse-hubzilla-573670fa0c8a3d8f111430985d263499b79a6ac0.tar.gz
volse-hubzilla-573670fa0c8a3d8f111430985d263499b79a6ac0.tar.bz2
volse-hubzilla-573670fa0c8a3d8f111430985d263499b79a6ac0.zip
more social graph stuff
Diffstat (limited to 'mod/dfrn_request.php')
-rw-r--r--mod/dfrn_request.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index af4a5aece..9755895ce 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -142,12 +142,13 @@ function dfrn_request_post(&$a) {
* Create a contact record on our site for the other person
*/
- $r = q("INSERT INTO `contact` ( `uid`, `created`,`url`, `name`, `nick`, `photo`, `site-pubkey`,
+ $r = q("INSERT INTO `contact` ( `uid`, `created`,`url`, `nurl`, `name`, `nick`, `photo`, `site-pubkey`,
`request`, `confirm`, `notify`, `poll`, `poco`, `network`, `aes_allow`)
- VALUES ( %d, '%s', '%s', '%s' , '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d)",
+ VALUES ( %d, '%s', '%s', '%s', '%s' , '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d)",
intval(local_user()),
datetime_convert(),
dbesc($dfrn_url),
+ dbesc(normalise_link($dfrn_url)),
$parms['fn'],
$parms['nick'],
$parms['photo'],
@@ -371,12 +372,13 @@ function dfrn_request_post(&$a) {
dbesc_array($parms);
- $r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `name`, `nick`, `issued-id`, `photo`, `site-pubkey`,
+ $r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `nurl`,`name`, `nick`, `issued-id`, `photo`, `site-pubkey`,
`request`, `confirm`, `notify`, `poll`, `poco`, `network` )
- VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
+ VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
intval($uid),
- datetime_convert(),
+ dbesc(datetime_convert()),
$parms['url'],
+ dbesc(normalise_link($parms['url'])),
$parms['fn'],
$parms['nick'],
$parms['issued-id'],