Merge pull request #21229 from nextcloud/fix-empty-event-reminder-notifications
Fix empty event UUID reminder notifications
This commit is contained in:
commit
4042236867
|
@ -95,8 +95,10 @@ class PushProvider extends AbstractProvider {
|
|||
$eventDetails = $this->extractEventDetails($vevent);
|
||||
$eventDetails['calendar_displayname'] = $calendarDisplayName;
|
||||
$eventUUID = (string) $vevent->UID;
|
||||
// Empty Notification ObjectId will be catched by OC\Notification\Notification
|
||||
$eventUUIDHash = $eventUUID ? hash('sha256', $eventUUID, false) : '';
|
||||
if (!$eventUUID) {
|
||||
return;
|
||||
};
|
||||
$eventUUIDHash = hash('sha256', $eventUUID, false);
|
||||
|
||||
foreach ($users as $user) {
|
||||
/** @var INotification $notification */
|
||||
|
|
Loading…
Reference in New Issue