From 6e0e3b2433fc426b758a55811f56536d58705813 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 22 Jan 2015 18:41:10 -0800 Subject: more expanding item flags --- mod/item.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index a6ab99ef5..26985dea4 100644 --- a/mod/item.php +++ b/mod/item.php @@ -330,11 +330,6 @@ function item_post(&$a) { $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']; @@ -765,13 +760,13 @@ function item_post(&$a) { if($uid) { if($channel['channel_hash'] === $datarray['author_xchan']) { $datarray['sig'] = base64url_encode(rsa_sign($datarray['body'],$channel['channel_prvkey'])); - $datarray['item_flags'] = $datarray['item_flags'] | ITEM_VERIFIED; + $datarray['item_verified'] = 1; } } logger('Encrypting local storage'); $key = get_config('system','pubkey'); - $datarray['item_flags'] = $datarray['item_flags'] | ITEM_OBSCURED; + $datarray['item_obscured'] = 1; if($datarray['title']) $datarray['title'] = json_encode(crypto_encapsulate($datarray['title'],$key)); if($datarray['body']) -- cgit v1.2.3