diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-28 20:02:08 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-28 20:02:08 -0800 |
commit | 9672d35d8c614f174b313ef1b631dc189e5ce997 (patch) | |
tree | 1851da599b4fca929935fa0a91895a295966a225 | |
parent | 14e14c6c92dadf4c95900978135a161f5da696d9 (diff) | |
download | volse-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
-rw-r--r-- | Zotlabs/Widget/Newmember.php | 6 |
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'), |