diff options
Diffstat (limited to 'lib/Controller/ApiController.php')
-rw-r--r-- | lib/Controller/ApiController.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 70d94ee6..3f680726 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -514,6 +514,24 @@ class ApiController extends Controller { * @NoCSRFRequired * @PublicPage * + * @param array $id + * + * @return DataResponse + */ + public function relationships(array $id): DataResponse { + try { + $this->initViewer(true); + + return new DataResponse($this->followService->getRelationships($id), Http::STATUS_OK); + } catch (Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * @NoCSRFRequired + * @PublicPage + * * @param string $account * @param int $limit * @param int $max_id |