]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/PublicRSAKey.php
Merge pull request #11307 from annando/api-reply-fix
[friendica.git] / src / Module / PublicRSAKey.php
index 22269984a8d182c51bd080c50e706b7e62fa7f5d..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()
+       protected function rawContent(array $request = [])
        {
-               if (empty(static::$parameters['nick'])) {
+               if (empty($this->parameters['nick'])) {
                        throw new BadRequestException();
                }
 
-               $nick = static::$parameters['nick'];
+               $nick = $this->parameters['nick'];
 
                $user = User::getByNickname($nick, ['spubkey']);
                if (empty($user) || empty($user['spubkey'])) {