Add feedback
This commit is contained in:
parent
dc46af5ea1
commit
a3a32af5c1
|
@ -99,6 +99,9 @@ class Arguments
|
|||
return $this->argv;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string The used HTTP method
|
||||
*/
|
||||
public function getMethod()
|
||||
{
|
||||
return $this->method;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue