Implement getting list of followers

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
update-master-target-versions
Carl Schwan 2022-10-27 15:22:21 +02:00
rodzic db3cb63810
commit 22216186d9
1 zmienionych plików z 17 dodań i 0 usunięć

Wyświetl plik

@ -548,6 +548,23 @@ class LocalController extends Controller {
}
}
/**
* @NoAdminRequired
* @PublicPage
*/
public function accountFollowers(string $username): DataResponse {
try {
$this->initViewer();
$actor = $this->cacheActorService->getFromLocalAccount($username);
$following = $this->followService->getFollowers($actor);
return $this->success($following);
} catch (Exception $e) {
return $this->fail($e);
}
}
/**
* @NoAdminRequired