]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/PublicRSAKey.php
Merge pull request #11360 from annando/announce-notification
[friendica.git] / src / Module / PublicRSAKey.php
index a13130d1c98bdd86e2c2b49b0db0483ffd447348..d803de754ea2c06a012125e73e236d4a87b39ab9 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
  *
@@ -33,13 +33,13 @@ use Friendica\Util\Strings;
  */
 class PublicRSAKey extends BaseModule
 {
-       public static function rawContent(array $parameters = [])
+       protected function rawContent(array $request = [])
        {
-               if (empty($parameters['nick'])) {
+               if (empty($this->parameters['nick'])) {
                        throw new BadRequestException();
                }
 
-               $nick = $parameters['nick'];
+               $nick = $this->parameters['nick'];
 
                $user = User::getByNickname($nick, ['spubkey']);
                if (empty($user) || empty($user['spubkey'])) {