aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
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 /include/items.php
parent2d6a1795b7ae1fc5652798347d958d7ae71cb763 (diff)
downloadvolse-hubzilla-72f00d6e04f0f57fc19f343a88975680baf8958a.tar.gz
volse-hubzilla-72f00d6e04f0f57fc19f343a88975680baf8958a.tar.bz2
volse-hubzilla-72f00d6e04f0f57fc19f343a88975680baf8958a.zip
issues with editing webpage permissions
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 434417751..275f5c05c 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2001,8 +2001,6 @@ function item_store_update($arr,$allow_exec = false) {
$arr = $d['item'];
$allow_exec = $d['allow_exec'];
-
-
$ret = array('success' => false, 'item_id' => 0);
if(! intval($arr['uid'])) {
logger('item_store_update: no uid');
@@ -2036,6 +2034,10 @@ function item_store_update($arr,$allow_exec = false) {
if($orig[0]['item_flags'] & ITEM_VERIFIED)
$orig[0]['item_flags'] = $orig[0]['item_flags'] ^ ITEM_VERIFIED;
+ if($orig[0]['item_flags'] & ITEM_OBSCURED)
+ $orig[0]['item_flags'] = $orig[0]['item_flags'] ^ ITEM_OBSCURED;
+
+
$arr['item_flags'] = intval($arr['item_flags']) | $orig[0]['item_flags'];
$arr['item_restrict'] = intval($arr['item_restrict']) | $orig[0]['item_restrict'];