diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-23 01:20:26 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-23 01:20:26 -0700 |
commit | b8b227b32882fb511c8481a41c53637e7ce7707a (patch) | |
tree | 9116351081efa6547268a62332dc4385b1422fbd /mod/register.php | |
parent | d850badf2b5717afe39a5fd96dabd29aa013910a (diff) | |
download | volse-hubzilla-b8b227b32882fb511c8481a41c53637e7ce7707a.tar.gz volse-hubzilla-b8b227b32882fb511c8481a41c53637e7ce7707a.tar.bz2 volse-hubzilla-b8b227b32882fb511c8481a41c53637e7ce7707a.zip |
add nicknames to contact records (going forward and retroactive)
Diffstat (limited to 'mod/register.php')
-rw-r--r-- | mod/register.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/register.php b/mod/register.php index 6f0469db8..52c3863eb 100644 --- a/mod/register.php +++ b/mod/register.php @@ -161,12 +161,13 @@ function register_post(&$a) { intval($newuid)); return; } - $r = q("INSERT INTO `contact` ( `uid`, `created`, `self`, `name`, `photo`, `thumb`, `blocked`, `pending`, `url`, + $r = q("INSERT INTO `contact` ( `uid`, `created`, `self`, `name`, `nick`, `photo`, `thumb`, `blocked`, `pending`, `url`, `request`, `notify`, `poll`, `confirm`, `name-date`, `uri-date`, `avatar-date` ) - VALUES ( %d, '%s', 1, '%s', '%s', '%s', 0, 0, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ", + VALUES ( %d, '%s', 1, '%s', '%s', '%s', '%s', 0, 0, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ", intval($newuid), datetime_convert(), dbesc($username), + dbesc($nickname), dbesc($a->get_baseurl() . "/photo/profile/{$newuid}.jpg"), dbesc($a->get_baseurl() . "/photo/avatar/{$newuid}.jpg"), dbesc($a->get_baseurl() . "/profile/$nickname"), |