Merge pull request #34248 from nextcloud/bugfix/noid/ignore-invalid-share-types

Ignore invalid share types
This commit is contained in:
Vincent Petry 2022-09-28 15:06:09 +02:00 committed by GitHub
commit 980ba65734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,6 +157,8 @@ class Notifier implements INotifier {
if ($share->getStatus() !== IShare::STATUS_PENDING) {
throw new AlreadyProcessedException();
}
} else {
throw new \InvalidArgumentException('Invalid share type');
}
switch ($notification->getSubject()) {