aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-15 16:38:26 -0700
committerfriendica <info@friendica.com>2012-03-15 16:38:26 -0700
commit7684f63ecdfce560f24475630144f6058df15ca9 (patch)
tree98c24daa58b9ed3df087e14e23e2f49e24acea55 /include
parentf96aff5518d2d5fb726d381892893a68d8c36450 (diff)
downloadvolse-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 'include')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 4b1523ff6..68acb45f9 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1048,6 +1048,7 @@ function dfrn_deliver($owner,$contact,$atom, $dissolve = false) {
$ssl_val = intval(get_config('system','ssl_policy'));
$ssl_policy = '';
+
switch($ssl_val){
case SSL_POLICY_FULL:
$ssl_policy = 'full';
@@ -1092,6 +1093,7 @@ function dfrn_deliver($owner,$contact,$atom, $dissolve = false) {
$challenge = hex2bin((string) $res->challenge);
$dfrn_version = (float) (($res->dfrn_version) ? $res->dfrn_version : 2.0);
$rino_allowed = ((intval($res->rino) === 1) ? 1 : 0);
+ $page = (($owner['page-flags'] == PAGE_COMMUNITY) ? 1 : 0);
$final_dfrn_id = '';
@@ -1135,6 +1137,9 @@ function dfrn_deliver($owner,$contact,$atom, $dissolve = false) {
$postvars['ssl_policy'] = $ssl_policy;
+ if($page)
+ $postvars['page'] = '1';
+
if($rino && $rino_allowed && (! $dissolve)) {
$key = substr(random_string(),0,16);
$data = bin2hex(aes_encrypt($postvars['data'],$key));