Don't crash on unauthenticated api call
This commit is contained in:
parent
e3a2898dfc
commit
2521efa34d
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user