Merge pull request #1710 from nextcloud/fix/noid/signed-action

get account on action
pull/1711/head
Maxence Lange 2023-04-03 14:16:29 -01:00 zatwierdzone przez GitHub
commit 14942d9668
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -510,7 +510,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);