mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
fix(install): redirect manually to install wizard on first visit
update php dependencies
This commit is contained in:
parent
cc9e4c7dc7
commit
2ceaaca44f
3 changed files with 36 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue