aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-28 20:02:08 -0800
committerzotlabs <mike@macgirvin.com>2018-02-28 20:02:08 -0800
commit9672d35d8c614f174b313ef1b631dc189e5ce997 (patch)
tree1851da599b4fca929935fa0a91895a295966a225 /Zotlabs/Widget
parent14e14c6c92dadf4c95900978135a161f5da696d9 (diff)
downloadvolse-hubzilla-9672d35d8c614f174b313ef1b631dc189e5ce997.tar.gz
volse-hubzilla-9672d35d8c614f174b313ef1b631dc189e5ce997.tar.bz2
volse-hubzilla-9672d35d8c614f174b313ef1b631dc189e5ce997.zip
hide newmember widget if a new account was used to create a clone of an old channel
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Newmember.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Newmember.php b/Zotlabs/Widget/Newmember.php
index a3f1126cc..898942ccc 100644
--- a/Zotlabs/Widget/Newmember.php
+++ b/Zotlabs/Widget/Newmember.php
@@ -22,6 +22,12 @@ class Newmember {
if(datetime_convert('UTC','UTC',$a['account_created']) < datetime_convert('UTC','UTC', 'now - 60 days'))
return EMPTY_STR;
+ // This could be a new account that was used to clone a very old channel
+
+ $ob = \App::get_observer();
+ if($ob && array_key_exists('xchan_name_date',$ob) && $ob['xchan_name_date'] < datetime_convert('UTC','UTC','now - 60 days'))
+ return EMPTY_STR;
+
$options = [
t('Profile Creation'),