From 8812f183a288fa3da960c5b91107315080ecec1e Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 11 Jun 2015 16:11:59 -0700 Subject: the hubzilla version of this function --- include/items.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/items.php b/include/items.php index c7dbbbda8..4532bf8d8 100755 --- a/include/items.php +++ b/include/items.php @@ -198,6 +198,18 @@ function item_normal() { and item.item_blocked = 0 "; } +function is_item_normal($item) { + + if(intval($item['item_hidden')) || intval($item['item_type')) || intval($item['item_deleted')) + || intval($item['item_unpublished')) || intval($item['item_delayed')) || intval($item['item_pending_remove'])) + || intval($item['item_blocked'))) + return false; + + return true; + +} + + /** -- cgit v1.2.3