From 941c554031de5a7ccb9dd685bec36cead508d41c Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 26 Nov 2012 21:20:16 -0800 Subject: You've got mail! (actually a post, mail is for another day) --- include/items.php | 4 ++- include/zot.php | 104 ++++++++++++++++++++++++++++++++++++++++++++++++------ 2 files changed, 97 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/items.php b/include/items.php index 605dcd51a..ed1c08b68 100755 --- a/include/items.php +++ b/include/items.php @@ -489,6 +489,8 @@ function get_item_elements($x) { $arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? 1 : 0); + if(array_key_exists('flags',$x) && in_array('deleted',$x['flags'])) + $arr['item_restrict'] = ITEM_DELETED; // Here's the deal - the site might be down or whatever but if there's a new person you've never // seen before sending stuff to your stream, we MUST be able to look them up and import their data from their @@ -1262,7 +1264,7 @@ function item_store($arr,$force_parent = false) { // pull out all the taxonomy stuff for separate storage $terms = null; - if(x($arr,'term')) { + if(array_key_exists('term',$arr)) { $terms = $arr['term']; unset($arr['term']); } diff --git a/include/zot.php b/include/zot.php index 93c63be28..aceee5f71 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1,6 +1,8 @@