aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-15 18:58:02 -0700
committerfriendica <info@friendica.com>2014-06-15 18:58:02 -0700
commit72f00d6e04f0f57fc19f343a88975680baf8958a (patch)
treed67034df1531c25f48766a9defc67795d66c84f1 /mod
parent2d6a1795b7ae1fc5652798347d958d7ae71cb763 (diff)
downloadvolse-hubzilla-72f00d6e04f0f57fc19f343a88975680baf8958a.tar.gz
volse-hubzilla-72f00d6e04f0f57fc19f343a88975680baf8958a.tar.bz2
volse-hubzilla-72f00d6e04f0f57fc19f343a88975680baf8958a.zip
issues with editing webpage permissions
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index d32c4dcac..d4c8a6f4a 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -280,11 +280,10 @@ function item_post(&$a) {
if((strlen($str_group_allow))
|| strlen($str_contact_allow)
|| strlen($str_group_deny)
- || strlen(str_contact_deny)) {
+ || strlen($str_contact_deny)) {
$private = 1;
}
-
$location = $orig_post['location'];
$coord = $orig_post['coord'];
$verb = $orig_post['verb'];
@@ -292,12 +291,19 @@ function item_post(&$a) {
$title = $_REQUEST['title'];
$body = $_REQUEST['body'];
$item_flags = $orig_post['item_flags'];
+
+ // force us to recalculate if we need to obscure this post
+
+ if($item_flags & ITEM_OBSCURED)
+ $item_flags = ($item_flags ^ ITEM_OBSCURED);
+
$item_restrict = $orig_post['item_restrict'];
$postopts = $orig_post['postopts'];
$created = $orig_post['created'];
$mid = $orig_post['mid'];
$parent_mid = $orig_post['parent_mid'];
$plink = $orig_post['plink'];
+
}
else {