X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FPublicRSAKey.php;h=d803de754ea2c06a012125e73e236d4a87b39ab9;hb=69b7923df2beed71419bc38e61ca9755fad24b12;hp=ad9bb6db849dffb48322324f0c5569b86fc4e066;hpb=38a5358bfa646ae13a4a1a385741890fa88d9b7f;p=friendica.git diff --git a/src/Module/PublicRSAKey.php b/src/Module/PublicRSAKey.php index ad9bb6db84..d803de754e 100644 --- a/src/Module/PublicRSAKey.php +++ b/src/Module/PublicRSAKey.php @@ -1,6 +1,6 @@ argc !== 2) { + if (empty($this->parameters['nick'])) { throw new BadRequestException(); } - // @TODO: Replace with parameter from router - $nick = $app->argv[1]; + $nick = $this->parameters['nick']; $user = User::getByNickname($nick, ['spubkey']); if (empty($user) || empty($user['spubkey'])) {