Replace $parameters argument per method with static::$parameters
This commit is contained in:
@@ -31,13 +31,13 @@ use Friendica\Protocol\ActivityPub;
|
||||
*/
|
||||
class Following extends BaseModule
|
||||
{
|
||||
public static function rawContent(array $parameters = [])
|
||||
public static function rawContent()
|
||||
{
|
||||
if (empty($parameters['nickname'])) {
|
||||
if (empty(static::$parameters['nickname'])) {
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
$owner = User::getOwnerDataByNick($parameters['nickname']);
|
||||
$owner = User::getOwnerDataByNick(static::$parameters['nickname']);
|
||||
if (empty($owner)) {
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user