diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 31cfcb08..3c8f43a3 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -68,14 +68,14 @@ public function prepare(INotification $notification, string $languageCode): INot if ($user instanceof IUser) { $richSubjectUser = [ 'type' => 'user', - 'id' => $p['approverId'], + 'id' => (string)$p['approverId'], 'name' => $user->getDisplayName(), ]; $linkToFile = $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $p['fileId']]); $richSubjectNode = [ 'type' => 'file', - 'id' => $p['fileId'], + 'id' => (string)$p['fileId'], 'name' => $p['fileName'], 'path' => trim($p['relativePath'], '/'), 'link' => $linkToFile, @@ -122,14 +122,14 @@ public function prepare(INotification $notification, string $languageCode): INot if ($user instanceof IUser) { $richSubjectUser = [ 'type' => 'user', - 'id' => $p['requesterId'], + 'id' => (string)$p['requesterId'], 'name' => $user->getDisplayName(), ]; $linkToFile = $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $p['fileId']]); $richSubjectNode = [ 'type' => 'file', - 'id' => $p['fileId'], + 'id' => (string)$p['fileId'], 'name' => $p['fileName'], 'path' => trim($p['relativePath'], '/'), 'link' => $linkToFile,