From dc7de1299139e79265fe2abece004e907dfb8ed0 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 11 Jun 2015 15:52:37 -0700 Subject: hubzilla compatibility function --- include/items.php | 14 ++++++++++++++ version.inc | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/items.php b/include/items.php index 47a2e6c18..0dc6d6ed6 100755 --- a/include/items.php +++ b/include/items.php @@ -192,6 +192,20 @@ function comments_are_now_closed($item) { return false; } +/** + * @brief + * + * This is a compatibility function primarily for plugins, because + * in future hubzilla (and later) DB schemas the definition of a + * normal item gets a bit more complicated. + * + */ + +function is_item_normal($item) { + return((intval($item['item_restrict'])) ? false : true); +} + + /** * @brief diff --git a/version.inc b/version.inc index 273ae533b..aa34c32c5 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-06-10.1059 +2015-06-11.1060 -- cgit v1.2.3