]> git.mxchange.org Git - friendica.git/commitdiff
Add expected second parameter to BaseApi::getRequest in a few put() methods
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 3 Dec 2021 22:57:11 +0000 (17:57 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 3 Dec 2021 23:00:54 +0000 (18:00 -0500)
src/Module/Api/Mastodon/Lists.php
src/Module/Api/Mastodon/Media.php
src/Module/Api/Mastodon/PushSubscription.php

index 12f6ea011e964d64d88c8ed79dc0b9c7ac3e9b04..ec686058ef3ffc8df04cf39389cd162a839c0df9 100644 (file)
@@ -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();
index b6ba366613ad1937f5e08645a14d1708ebda27f3..03c3a49c436f9f7722714c2766ab6e4126e6d88e 100644 (file)
@@ -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();
index 3e90aebd9d295a4f329412703bb9dd7a26fae5cc..3d80cb9ec34cb66f9ed0d52870d62e8a5c71ad93 100644 (file)
@@ -74,7 +74,7 @@ class PushSubscription extends BaseApi
 
                $request = $this->getRequest([
                        'data' => [],
-               ]);
+               ], $request);
 
                $subscription = Subscription::select($application['id'], $uid, ['id']);
                if (empty($subscription)) {