kopia lustrzana https://github.com/nextcloud/social
Implement getting list of followers
Signed-off-by: Carl Schwan <carl@carlschwan.eu>pull/1500/head
rodzic
db3cb63810
commit
22216186d9
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue