mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-09 00:24:29 +02:00
Replace $parameters
argument per method with static::$parameters
This commit is contained in:
parent
018275919c
commit
714f0febc4
249 changed files with 710 additions and 775 deletions
|
@ -38,7 +38,7 @@ use Friendica\Network\HTTPException;
|
|||
*/
|
||||
class Notify extends BaseModule
|
||||
{
|
||||
public static function post(array $parameters = [])
|
||||
public static function post()
|
||||
{
|
||||
$postdata = Network::postdata();
|
||||
|
||||
|
@ -47,8 +47,8 @@ class Notify extends BaseModule
|
|||
}
|
||||
|
||||
$data = json_decode($postdata);
|
||||
if (is_object($data) && !empty($parameters['nickname'])) {
|
||||
$user = User::getByNickname($parameters['nickname']);
|
||||
if (is_object($data) && !empty(static::$parameters['nickname'])) {
|
||||
$user = User::getByNickname(static::$parameters['nickname']);
|
||||
if (empty($user)) {
|
||||
throw new \Friendica\Network\HTTPException\InternalServerErrorException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue