summaryrefslogtreecommitdiffstats
path: root/lib/Controller/ApiController.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/ApiController.php')
-rw-r--r--lib/Controller/ApiController.php3
1 files changed, 2 insertions, 1 deletions
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);