]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/RandomProfile.php
Decouple conversation creation from rendering
[friendica.git] / src / Module / RandomProfile.php
index 163fec60fbb6da1f8b06d5be5ea45d58f3e99b38..1821211203dd53359ff2c0694f5efdb5abc1779c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -30,7 +30,7 @@ use Friendica\Model\Contact;
  */
 class RandomProfile extends BaseModule
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $a = DI::app();
 
@@ -42,5 +42,7 @@ class RandomProfile extends BaseModule
                }
 
                DI::baseUrl()->redirect('profile');
+
+               return '';
        }
 }