hide newmember widget if a new account was used to create a clone of an old channel

This commit is contained in:
zotlabs 2018-02-28 20:02:08 -08:00
parent 14e14c6c92
commit 9672d35d8c

View File

@ -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'),