Don't crash on unauthenticated api call

This commit is contained in:
Jonathan Flueren 2022-05-03 22:27:55 +02:00 committed by thrillfall
parent e3a2898dfc
commit 2521efa34d
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
# Changelog
## 3.3.0 - 2022-05-03
### Fixed
- Don't crash on unauthenticated api call
### Changed
- Add support for Nextcloud 24
## 3.2.0 - 2021-12-09

View File

@ -26,7 +26,7 @@ class EpisodeActionController extends Controller {
) {
parent::__construct($AppName, $request);
$this->episodeActionRepository = $episodeActionRepository;
$this->userId = $UserId;
$this->userId = $UserId !== null ? $UserId : '';
$this->episodeActionSaver = $episodeActionSaver;
$this->request = $request;
}

View File

@ -28,7 +28,7 @@ class SubscriptionChangeController extends Controller {
parent::__construct($AppName, $request);
$this->subscriptionChangeSaver = $subscriptionChangeSaver;
$this->subscriptionChangeRepository = $subscriptionChangeRepository;
$this->userId = $UserId;
$this->userId = $UserId !== null ? $UserId : '';
}
/**