diff options
author | marijus <mario@mariovavti.com> | 2015-01-09 15:18:45 +0100 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2015-01-09 15:18:45 +0100 |
commit | 978d78b95310adad1075d525babfa566c81876f5 (patch) | |
tree | 8c266aed1f4f3e83778e1e62dc8ea24a0c6f68c1 /include/items.php | |
parent | e1c5cc46f63028a6525049339e84de711666817a (diff) | |
download | volse-hubzilla-978d78b95310adad1075d525babfa566c81876f5.tar.gz volse-hubzilla-978d78b95310adad1075d525babfa566c81876f5.tar.bz2 volse-hubzilla-978d78b95310adad1075d525babfa566c81876f5.zip |
basic changes for file activity
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index e2534528a..e7cc15878 100755 --- a/include/items.php +++ b/include/items.php @@ -835,7 +835,9 @@ function get_item_elements($x) { if(array_key_exists('flags',$x) && in_array('deleted',$x['flags'])) - $arr['item_restrict'] = ITEM_DELETED; + $arr['item_restrict'] = ITEM_DELETED; + if(array_key_exists('flags',$x) && in_array('hidden',$x['flags'])) + $arr['item_restrict'] = ITEM_HIDDEN; // 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 @@ -1306,6 +1308,8 @@ function encode_item_flags($item) { if($item['item_restrict'] & ITEM_DELETED) $ret[] = 'deleted'; + if($item['item_restrict'] & ITEM_HIDDEN) + $ret[] = 'hidden'; if($item['item_flags'] & ITEM_THREAD_TOP) $ret[] = 'thread_parent'; if($item['item_flags'] & ITEM_NSFW) |