<?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
*
*/
class PublicRSAKey extends BaseModule
{
- public 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'])) {