aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Newmember.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Widget/Newmember.php b/Zotlabs/Widget/Newmember.php
index cdb70e23d..afa808e6f 100644
--- a/Zotlabs/Widget/Newmember.php
+++ b/Zotlabs/Widget/Newmember.php
@@ -9,16 +9,17 @@ class Newmember {
if(! local_channel())
return EMPTY_STR;
+ if(get_pconfig(local_channel(), 'system', 'disable_newmemberwidget'))
+ return EMPTY_STR;
+
$c = \App::get_channel();
if(! $c)
return EMPTY_STR;
-
$a = \App::get_account();
if(! $a)
return EMPTY_STR;
-
if(datetime_convert('UTC','UTC',$a['account_created']) < datetime_convert('UTC','UTC', 'now - 60 days'))
return EMPTY_STR;
@@ -46,7 +47,7 @@ class Newmember {
t('Communicate'),
[
- 'channel/' . $channel['channel_address'] => t('View your channel homepage'),
+ 'channel/' . $c['channel_address'] => t('View your channel homepage'),
'network' => t('View your network stream'),
],