<?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 Followers extends BaseModule
{
- public static function rawContent()
+ protected function rawContent(array $request = [])
{
- if (empty(static::$parameters['nickname'])) {
+ if (empty($this->parameters['nickname'])) {
throw new \Friendica\Network\HTTPException\NotFoundException();
}
// @TODO: Replace with parameter from router
- $owner = User::getOwnerDataByNick(static::$parameters['nickname']);
+ $owner = User::getOwnerDataByNick($this->parameters['nickname']);
if (empty($owner)) {
throw new \Friendica\Network\HTTPException\NotFoundException();
}