1
0
Fork 0

Removed second ppst parameter

This commit is contained in:
Michael 2021-11-30 21:41:10 +00:00
parent 68655d0dcb
commit 03d2160690
16 changed files with 16 additions and 16 deletions

View file

@ -40,7 +40,7 @@ use Friendica\Module\BaseApi;
*/
class Activity extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();

View file

@ -30,7 +30,7 @@ use Friendica\Module\BaseApi;
*/
class Setseen extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();

View file

@ -32,7 +32,7 @@ use Friendica\Network\HTTPException\BadRequestException;
*/
class Delete extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();

View file

@ -32,7 +32,7 @@ use Friendica\Network\HTTPException\BadRequestException;
*/
class Update extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();

View file

@ -38,7 +38,7 @@ use Friendica\Network\HTTPException\NotFoundException;
*/
class Seen extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();

View file

@ -32,7 +32,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
*/
class Delete extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
$uid = self::getCurrentUserID();

View file

@ -34,7 +34,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
*/
class Delete extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();

View file

@ -32,7 +32,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
*/
class Update extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();

View file

@ -32,7 +32,7 @@ use Friendica\Model\Profile;
*/
class UpdateProfile extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();

View file

@ -31,7 +31,7 @@ use Friendica\Network\HTTPException\BadRequestException;
*/
class Create extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();

View file

@ -31,7 +31,7 @@ use Friendica\Network\HTTPException\BadRequestException;
*/
class Destroy extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();

View file

@ -37,7 +37,7 @@ use Friendica\Network\HTTPException;
*/
class Destroy extends ContactEndpoint
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();

View file

@ -34,7 +34,7 @@ use Friendica\Util\Network;
*/
class Create extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();

View file

@ -35,7 +35,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
*/
class Upload extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
$uid = BaseApi::getCurrentUserID();

View file

@ -34,7 +34,7 @@ use Friendica\Model\Item;
*/
class Destroy extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
$uid = BaseApi::getCurrentUserID();

View file

@ -40,7 +40,7 @@ use Friendica\Network\HTTPException\InternalServerErrorException;
*/
class Retweet extends BaseApi
{
protected function post(array $request = [], array $post = [])
protected function post(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();