From 79f5fd8e2a4959b78cf8be6312962849e14e9d85 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 26 Mar 2014 16:09:07 -0700 Subject: allow zotfeed to create a firehose of a site. --- include/identity.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index c8a925dac..97c29516c 100644 --- a/include/identity.php +++ b/include/identity.php @@ -109,6 +109,15 @@ function get_sys_channel() { return false; } +function is_sys_channel($channel_id) { + $r = q("select channel_pageflags from channel where channel_id = %d limit 1", + intval($channel_id) + ); + if(($r) && ($r[0]['channel_pageflags'] & PAGE_SYSTEM)) + return true; + return false; +} + /** * @channel_total() -- cgit v1.2.3