From d1f495e43d560fea9ba73e0444bc70f26fa35603 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Fri, 31 Mar 2023 10:26:33 -0100 Subject: get account on action Signed-off-by: Maxence Lange --- lib/Controller/ApiController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index c8029a7b..cf7d3786 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -507,7 +507,8 @@ class ApiController extends Controller { public function statusAction(int $nid, string $act): DataResponse { try { $this->initViewer(true); - $item = $this->actionService->action($this->viewer, $nid, $act); + $actor = $this->accountService->getActor($this->viewer->getPreferredUsername()); + $item = $this->actionService->action($actor, $nid, $act); if ($item === null) { $item = $this->streamService->getStreamByNid($nid); -- cgit v1.2.3