diff --git a/src/Module/Api/Mastodon/Lists.php b/src/Module/Api/Mastodon/Lists.php index 12f6ea011..ec686058e 100644 --- a/src/Module/Api/Mastodon/Lists.php +++ b/src/Module/Api/Mastodon/Lists.php @@ -79,7 +79,7 @@ class Lists extends BaseApi $request = $this->getRequest([ 'title' => '', // The title of the list to be updated. 'replies_policy' => '', // One of: "followed", "list", or "none". - ]); + ], $request); if (empty($request['title']) || empty($this->parameters['id'])) { DI::mstdnError()->UnprocessableEntity(); diff --git a/src/Module/Api/Mastodon/Media.php b/src/Module/Api/Mastodon/Media.php index b6ba36661..03c3a49c4 100644 --- a/src/Module/Api/Mastodon/Media.php +++ b/src/Module/Api/Mastodon/Media.php @@ -63,7 +63,7 @@ class Media extends BaseApi '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. 'focus' => '', // Two floating points (x,y), comma-delimited ranging from -1.0 to 1.0 - ]); + ], $request); if (empty($this->parameters['id'])) { DI::mstdnError()->UnprocessableEntity(); diff --git a/src/Module/Api/Mastodon/PushSubscription.php b/src/Module/Api/Mastodon/PushSubscription.php index 3e90aebd9..3d80cb9ec 100644 --- a/src/Module/Api/Mastodon/PushSubscription.php +++ b/src/Module/Api/Mastodon/PushSubscription.php @@ -74,7 +74,7 @@ class PushSubscription extends BaseApi $request = $this->getRequest([ 'data' => [], - ]); + ], $request); $subscription = Subscription::select($application['id'], $uid, ['id']); if (empty($subscription)) {