diff options
author | friendica <info@friendica.com> | 2012-03-15 16:38:26 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-15 16:38:26 -0700 |
commit | 7684f63ecdfce560f24475630144f6058df15ca9 (patch) | |
tree | 98c24daa58b9ed3df087e14e23e2f49e24acea55 /mod/dfrn_confirm.php | |
parent | f96aff5518d2d5fb726d381892893a68d8c36450 (diff) | |
download | volse-hubzilla-7684f63ecdfce560f24475630144f6058df15ca9.tar.gz volse-hubzilla-7684f63ecdfce560f24475630144f6058df15ca9.tar.bz2 volse-hubzilla-7684f63ecdfce560f24475630144f6058df15ca9.zip |
track whether contact is a community page or not
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r-- | mod/dfrn_confirm.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 0bc3ea7df..2f4fb7045 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -207,6 +207,9 @@ function dfrn_confirm_post(&$a,$handsfree = null) { if($duplex == 1) $params['duplex'] = 1; + if($user['page-flags'] == PAGE_COMMUNITY) + $params['page'] = 1; + logger('dfrn_confirm: Confirm: posting data to ' . $dfrn_confirm . ': ' . print_r($params,true), LOGGER_DATA); /** @@ -522,6 +525,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) { $source_url = ((x($_POST,'source_url')) ? hex2bin($_POST['source_url']) : ''); $aes_key = ((x($_POST,'aes_key')) ? $_POST['aes_key'] : ''); $duplex = ((x($_POST,'duplex')) ? intval($_POST['duplex']) : 0 ); + $page = ((x($_POST,'page')) ? intval($_POST['page']) : 0 ); $version_id = ((x($_POST,'dfrn_version')) ? (float) $_POST['dfrn_version'] : 2.0); logger('dfrn_confirm: requestee contacted: ' . $node); @@ -677,6 +681,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) { `blocked` = 0, `pending` = 0, `duplex` = %d, + `forum` = %d, `network` = '%s' WHERE `id` = %d LIMIT 1 ", dbesc($photos[0]), @@ -687,6 +692,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) { dbesc(datetime_convert()), dbesc(datetime_convert()), intval($duplex), + intval($page), dbesc(NETWORK_DFRN), intval($dfrn_record) ); |