Replace $parameters argument per method with static::$parameters
This commit is contained in:
@@ -33,13 +33,13 @@ use Friendica\Util\Strings;
|
||||
*/
|
||||
class PublicRSAKey extends BaseModule
|
||||
{
|
||||
public static function rawContent(array $parameters = [])
|
||||
public static function rawContent()
|
||||
{
|
||||
if (empty($parameters['nick'])) {
|
||||
if (empty(static::$parameters['nick'])) {
|
||||
throw new BadRequestException();
|
||||
}
|
||||
|
||||
$nick = $parameters['nick'];
|
||||
$nick = static::$parameters['nick'];
|
||||
|
||||
$user = User::getByNickname($nick, ['spubkey']);
|
||||
if (empty($user) || empty($user['spubkey'])) {
|
||||
|
||||
Reference in New Issue
Block a user