diff options
author | zotlabs <mike@macgirvin.com> | 2018-10-08 20:58:16 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-10-08 20:58:16 -0700 |
commit | 2cb52f88755aac62f208463e4754153bbf249c67 (patch) | |
tree | 01746da751c10a67f6064d2d1fd79af33dc73685 /Zotlabs/Module/Pubstream.php | |
parent | 2c797807cd63850055fc65e445a605aee106530a (diff) | |
parent | 37b94bf5fa71835fe50af6f862e124e24b5db4b4 (diff) | |
download | volse-hubzilla-2cb52f88755aac62f208463e4754153bbf249c67.tar.gz volse-hubzilla-2cb52f88755aac62f208463e4754153bbf249c67.tar.bz2 volse-hubzilla-2cb52f88755aac62f208463e4754153bbf249c67.zip |
Merge branch 'dev'
Diffstat (limited to 'Zotlabs/Module/Pubstream.php')
-rw-r--r-- | Zotlabs/Module/Pubstream.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php index 19cb72b5b..94df29984 100644 --- a/Zotlabs/Module/Pubstream.php +++ b/Zotlabs/Module/Pubstream.php @@ -1,6 +1,9 @@ <?php namespace Zotlabs\Module; +use App; +use Zotlabs\Lib\Apps; + require_once('include/conversation.php'); require_once('include/acl_selectors.php'); @@ -9,6 +12,17 @@ class Pubstream extends \Zotlabs\Web\Controller { function get($update = 0, $load = false) { + if(local_channel()) { + if(! Apps::system_app_installed(local_channel(), 'Public Stream')) { + //Do not display any associated widgets at this point + App::$pdl = ''; + + $o = '<b>' . t('Public Stream App') . ' (' . t('Not Installed') . '):</b><br>'; + $o .= t('The unmoderated public stream of this hub'); + return $o; + } + } + if($load) $_SESSION['loadtime'] = datetime_convert(); |