aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-28 17:43:29 -0700
committerfriendica <info@friendica.com>2012-06-28 17:43:29 -0700
commita3edbf7e5d0d89e99c2249cf30657b1fbc57982a (patch)
tree75d20b8a787b229c0fdbb48861b4a064e35c31fb /mod
parent43d3721fa92f21007f45427eea35810a3b8545c6 (diff)
downloadvolse-hubzilla-a3edbf7e5d0d89e99c2249cf30657b1fbc57982a.tar.gz
volse-hubzilla-a3edbf7e5d0d89e99c2249cf30657b1fbc57982a.tar.bz2
volse-hubzilla-a3edbf7e5d0d89e99c2249cf30657b1fbc57982a.zip
create third privacy state - public post but not searchable or publicly visible
Diffstat (limited to 'mod')
-rwxr-xr-xmod/events.php2
-rw-r--r--mod/item.php2
-rw-r--r--mod/lockview.php2
-rw-r--r--mod/share.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/mod/events.php b/mod/events.php
index 4a6d3f100..7940e79a4 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -120,7 +120,7 @@ function events_post(&$a) {
$datarray['allow_gid'] = $str_group_allow;
$datarray['deny_cid'] = $str_contact_deny;
$datarray['deny_gid'] = $str_group_deny;
- $datarray['private'] = $private_event;
+ $datarray['private'] = (($private_event) ? 1 : 0);
$datarray['id'] = $event_id;
$datarray['created'] = $created;
$datarray['edited'] = $edited;
diff --git a/mod/item.php b/mod/item.php
index aa022d37d..554e97fe4 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -228,7 +228,7 @@ function item_post(&$a) {
|| strlen($parent_item['allow_gid'])
|| strlen($parent_item['deny_cid'])
|| strlen($parent_item['deny_gid'])) {
- $private = 1;
+ $private = (($parent_item['private']) ? $parent_item['private'] : 1);
}
$str_contact_allow = $parent_item['allow_cid'];
diff --git a/mod/lockview.php b/mod/lockview.php
index 9e64e2608..a832629f1 100644
--- a/mod/lockview.php
+++ b/mod/lockview.php
@@ -33,7 +33,7 @@ function lockview_content(&$a) {
$deny_users = expand_acl($item['deny_cid']);
$deny_groups = expand_acl($item['deny_gid']);
- if(($item['private']) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid']))
+ if(($item['private'] == 1) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid']))
&& (! strlen($item['deny_cid'])) && (! strlen($item['deny_gid']))) {
echo t('Remote privacy information not available.') . '<br />';
diff --git a/mod/share.php b/mod/share.php
index 08c63105e..29d31f6b5 100644
--- a/mod/share.php
+++ b/mod/share.php
@@ -15,7 +15,7 @@ function share_init(&$a) {
intval($post_id),
intval(local_user())
);
- if(! count($r) || ($r[0]['private'] && ($r[0]['network'] != NETWORK_FEED)))
+ if(! count($r) || ($r[0]['private'] == 1))
killme();
$o = '';