summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-03-31 10:26:33 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-03-31 10:26:33 -0100
commitd1f495e43d560fea9ba73e0444bc70f26fa35603 (patch)
tree38bdf10599e61e80d8a7086a3c0ce9661f2973fe
parent1ca33be5805a932a2861d820445c24f1f06f14f0 (diff)
get account on action
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-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);