parameters now are having a default value and are optional
This commit is contained in:
@@ -21,7 +21,7 @@ use Friendica\Util\Crypto;
|
||||
|
||||
class Compose extends BaseModule
|
||||
{
|
||||
public static function post($parameters)
|
||||
public static function post(array $parameters = [])
|
||||
{
|
||||
if (!empty($_REQUEST['body'])) {
|
||||
$_REQUEST['return'] = 'network';
|
||||
@@ -32,7 +32,7 @@ class Compose extends BaseModule
|
||||
}
|
||||
}
|
||||
|
||||
public static function content($parameters)
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return Login::form('compose', false);
|
||||
|
||||
Reference in New Issue
Block a user