]> git.mxchange.org Git - friendica.git/commitdiff
Add feedback
authorPhilipp <admin@philipp.info>
Mon, 3 Jan 2022 18:26:22 +0000 (19:26 +0100)
committerPhilipp <admin@philipp.info>
Tue, 4 Jan 2022 19:59:27 +0000 (20:59 +0100)
src/App/Arguments.php
src/BaseModule.php
src/Module/Api/Mastodon/Accounts/Followers.php

index ce247408398c889535460f3447a03b62ea1c123a..4d386fc2551d2c5138e80db4e4fca53872fbcd7d 100644 (file)
@@ -99,6 +99,9 @@ class Arguments
                return $this->argv;
        }
 
+       /**
+        * @return string The used HTTP method
+        */
        public function getMethod()
        {
                return $this->method;
index bd096d94a45e29b9a373dd196011ee60fd8f8a02..c1a926a3a53f414cad8dcb097afc763620a12d94 100644 (file)
@@ -223,7 +223,7 @@ abstract class BaseModule implements ICanHandleRequests
 
                $this->profiler->set(microtime(true) - $timestamp, 'init');
 
-               switch ($this->args->getMethod() ?? Router::GET) {
+               switch ($this->args->getMethod()) {
                        case Router::DELETE:
                                $this->delete($request);
                                break;
index d5fef22a6ca2e1915f432d8a2cd60e2a9f3a9432..58d1f7d8348dddd85a12cc97accc3bca76b1d5f7 100644 (file)
@@ -73,6 +73,8 @@ class Followers extends BaseApi
                        $params['order'] = ['cid'];
                }
 
+               $accounts = [];
+
                $followers = DBA::select('contact-relation', ['relation-cid'], $condition, $params);
                while ($follower = DBA::fetch($followers)) {
                        self::setBoundaries($follower['relation-cid']);