aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pubstream.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-06 16:08:15 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-06 16:08:15 +0200
commitb8991750c5d36714100d20595da6a33149bd7d5d (patch)
treef84bc4848bc47f2d099dfb0dbe196d21f05ef6bc /Zotlabs/Module/Pubstream.php
parent18726737d0116f13ec83cb2c1094a36d08980b7d (diff)
downloadvolse-hubzilla-b8991750c5d36714100d20595da6a33149bd7d5d.tar.gz
volse-hubzilla-b8991750c5d36714100d20595da6a33149bd7d5d.tar.bz2
volse-hubzilla-b8991750c5d36714100d20595da6a33149bd7d5d.zip
pubstream app
Diffstat (limited to 'Zotlabs/Module/Pubstream.php')
-rw-r--r--Zotlabs/Module/Pubstream.php14
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();