From 5fa1302be80064d24d7c2907eda0219ce8f479a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Sun, 15 Mar 2026 11:30:47 +0100 Subject: [PATCH] fix: Ensure rich parameters are strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- lib/Notification/Notifier.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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,