Add feedback

This commit is contained in:
Philipp 2022-01-03 19:26:22 +01:00
parent dc46af5ea1
commit a3a32af5c1
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
3 changed files with 6 additions and 1 deletions

View File

@ -99,6 +99,9 @@ class Arguments
return $this->argv; return $this->argv;
} }
/**
* @return string The used HTTP method
*/
public function getMethod() public function getMethod()
{ {
return $this->method; return $this->method;

View File

@ -223,7 +223,7 @@ abstract class BaseModule implements ICanHandleRequests
$this->profiler->set(microtime(true) - $timestamp, 'init'); $this->profiler->set(microtime(true) - $timestamp, 'init');
switch ($this->args->getMethod() ?? Router::GET) { switch ($this->args->getMethod()) {
case Router::DELETE: case Router::DELETE:
$this->delete($request); $this->delete($request);
break; break;

View File

@ -73,6 +73,8 @@ class Followers extends BaseApi
$params['order'] = ['cid']; $params['order'] = ['cid'];
} }
$accounts = [];
$followers = DBA::select('contact-relation', ['relation-cid'], $condition, $params); $followers = DBA::select('contact-relation', ['relation-cid'], $condition, $params);
while ($follower = DBA::fetch($followers)) { while ($follower = DBA::fetch($followers)) {
self::setBoundaries($follower['relation-cid']); self::setBoundaries($follower['relation-cid']);