]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Moderation/BaseUsers.php
Remove DI dependency from Module\Contact\Profile
[friendica.git] / src / Module / Moderation / BaseUsers.php
index 14bbd607665f2cfbb3dd82d353b43c980d3a0d88..2d352dbdc3e1462ec21f1e331a98ccd6c36f9057 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -118,15 +118,15 @@ abstract class BaseUsers extends BaseModeration
                        $page_types = [
                                User::PAGE_FLAGS_NORMAL    => $this->t('Normal Account Page'),
                                User::PAGE_FLAGS_SOAPBOX   => $this->t('Soapbox Page'),
-                               User::PAGE_FLAGS_COMMUNITY => $this->t('Public Forum'),
+                               User::PAGE_FLAGS_COMMUNITY => $this->t('Public Group'),
                                User::PAGE_FLAGS_FREELOVE  => $this->t('Automatic Friend Page'),
-                               User::PAGE_FLAGS_PRVGROUP  => $this->t('Private Forum')
+                               User::PAGE_FLAGS_PRVGROUP  => $this->t('Private Group')
                        ];
                        $account_types = [
                                User::ACCOUNT_TYPE_PERSON       => $this->t('Personal Page'),
                                User::ACCOUNT_TYPE_ORGANISATION => $this->t('Organisation Page'),
                                User::ACCOUNT_TYPE_NEWS         => $this->t('News Page'),
-                               User::ACCOUNT_TYPE_COMMUNITY    => $this->t('Community Forum'),
+                               User::ACCOUNT_TYPE_COMMUNITY    => $this->t('Community Group'),
                                User::ACCOUNT_TYPE_RELAY        => $this->t('Relay'),
                        ];
 
@@ -137,7 +137,7 @@ abstract class BaseUsers extends BaseModeration
                        $user['account_type']     = ($user['page_flags_raw'] == 0) ? $account_types[$user['account-type']] : '';
 
                        $user['register_date'] = Temporal::getRelativeDate($user['register_date']);
-                       $user['login_date']    = Temporal::getRelativeDate($user['last-activity'], null, false);
+                       $user['login_date']    = Temporal::getRelativeDate($user['last-activity'], false);
                        $user['lastitem_date'] = Temporal::getRelativeDate($user['last-item']);
                        $user['is_admin']      = in_array($user['email'], $adminlist);
                        $user['is_deletable']  = !$user['account_removed'] && intval($user['uid']) != $this->session->getLocalUserId();