]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Directory.php
API: We can now post to groups via the Mastodon endpoint
[friendica.git] / src / Module / Directory.php
index a81780a28014f5b89af0ec3f5cb423e1d42c1a7d..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 function content(): string
+       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'],