mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #21249 from nextcloud/backport/21229/stable17
[stable17] Fix empty event UUID reminder notifications
This commit is contained in:
commit
7ef52a43f1
1 changed files with 4 additions and 2 deletions
|
|
@ -90,8 +90,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 a new issue