From 72f00d6e04f0f57fc19f343a88975680baf8958a Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 15 Jun 2014 18:58:02 -0700 Subject: issues with editing webpage permissions --- mod/item.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'mod') 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 { -- cgit v1.2.3