fix(install): redirect manually to install wizard on first visit

update php dependencies
This commit is contained in:
Yassine Doghri 2021-06-09 16:08:24 +00:00
commit 2ceaaca44f
No known key found for this signature in database
GPG key ID: 3E7F89498B960C9F
3 changed files with 36 additions and 37 deletions

View file

@ -214,20 +214,15 @@ class NoteController extends ActivityPubNoteController
}
$action = $this->request->getPost('action');
/** @phpstan-ignore-next-line */
switch ($action) {
case 'favourite':
return $this->attemptFavourite();
case 'reblog':
return $this->attemptReblog();
case 'reply':
return $this->attemptReply();
default:
return redirect()
->back()
->withInput()
->with('errors', 'error');
}
return match ($action) {
'favourite' => $this->attemptFavourite(),
'reblog' => $this->attemptReblog(),
'reply' => $this->attemptReply(),
default => redirect()
->back()
->withInput()
->with('errors', 'error'),
};
}
public function remoteAction(string $action): string