Add feedback

This commit is contained in:
Philipp Holzer 2022-01-03 19:26:22 +01:00
parent dc46af5ea1
commit a3a32af5c1
Signed by: nupplaPhil
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 string The used HTTP method
*/
public function getMethod()
{
return $this->method;

View 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;

View 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']);