]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Directory.php
We now offer an endpoint for featured posts
[friendica.git] / src / Module / Directory.php
index 799b18ea10ad4058905570145209245eb3663c58..8d7b8611b64e1f03f09cf745f3a37b3a3297d673 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -38,7 +38,7 @@ use Friendica\Network\HTTPException;
  */
 class Directory extends BaseModule
 {
-       public static function content()
+       protected function content(array $request = []): string
        {
                $app = DI::app();
                $config = DI::config();
@@ -165,7 +165,7 @@ class Directory extends BaseModule
                        'img_hover'    => $contact['name'],
                        'name'         => $contact['name'],
                        'details'      => $details,
-                       'account_type' => Model\Contact::getAccountType($contact),
+                       'account_type' => Model\Contact::getAccountType($contact['contact-type']),
                        'profile'      => $profile,
                        'location'     => $location_e,
                        'tags'         => $contact['pub_keywords'],