Add expected second parameter to BaseApi::getRequest in a few put() methods
This commit is contained in:
parent
46e251be1f
commit
e1d6de757f
|
@ -79,7 +79,7 @@ class Lists extends BaseApi
|
||||||
$request = $this->getRequest([
|
$request = $this->getRequest([
|
||||||
'title' => '', // The title of the list to be updated.
|
'title' => '', // The title of the list to be updated.
|
||||||
'replies_policy' => '', // One of: "followed", "list", or "none".
|
'replies_policy' => '', // One of: "followed", "list", or "none".
|
||||||
]);
|
], $request);
|
||||||
|
|
||||||
if (empty($request['title']) || empty($this->parameters['id'])) {
|
if (empty($request['title']) || empty($this->parameters['id'])) {
|
||||||
DI::mstdnError()->UnprocessableEntity();
|
DI::mstdnError()->UnprocessableEntity();
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Media extends BaseApi
|
||||||
'thumbnail' => [], // The custom thumbnail of the media to be attached, using multipart form data.
|
'thumbnail' => [], // The custom thumbnail of the media to be attached, using multipart form data.
|
||||||
'description' => '', // A plain-text description of the media, for accessibility purposes.
|
'description' => '', // A plain-text description of the media, for accessibility purposes.
|
||||||
'focus' => '', // Two floating points (x,y), comma-delimited ranging from -1.0 to 1.0
|
'focus' => '', // Two floating points (x,y), comma-delimited ranging from -1.0 to 1.0
|
||||||
]);
|
], $request);
|
||||||
|
|
||||||
if (empty($this->parameters['id'])) {
|
if (empty($this->parameters['id'])) {
|
||||||
DI::mstdnError()->UnprocessableEntity();
|
DI::mstdnError()->UnprocessableEntity();
|
||||||
|
|
|
@ -74,7 +74,7 @@ class PushSubscription extends BaseApi
|
||||||
|
|
||||||
$request = $this->getRequest([
|
$request = $this->getRequest([
|
||||||
'data' => [],
|
'data' => [],
|
||||||
]);
|
], $request);
|
||||||
|
|
||||||
$subscription = Subscription::select($application['id'], $uid, ['id']);
|
$subscription = Subscription::select($application['id'], $uid, ['id']);
|
||||||
if (empty($subscription)) {
|
if (empty($subscription)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user