From 14a7fdf83f3d37a03039b6065635cd73375c39aa Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 2 Sep 2024 07:17:06 +0200 Subject: [PATCH] fix(Notification): Fix rich object parameters with non-string values Signed-off-by: provokateurin --- lib/Notification/Notifier.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 198a4c8eb58..071a033870b 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -300,7 +300,7 @@ protected function parseStoredRecordingFail( [ 'call' => [ 'type' => 'call', - 'id' => $room->getId(), + 'id' => (string)$room->getId(), 'name' => $room->getDisplayName($participant->getAttendee()->getActorId()), 'call-type' => $this->getRoomType($room), 'icon-url' => $this->avatarService->getAvatarUrl($room), @@ -375,16 +375,16 @@ protected function parseStoredRecording( [ 'call' => [ 'type' => 'call', - 'id' => $room->getId(), + 'id' => (string)$room->getId(), 'name' => $room->getDisplayName($participant->getAttendee()->getActorId()), 'call-type' => $this->getRoomType($room), 'icon-url' => $this->avatarService->getAvatarUrl($room), ], 'file' => [ 'type' => 'file', - 'id' => $file->getId(), + 'id' => (string)$file->getId(), 'name' => $file->getName(), - 'path' => $path, + 'path' => (string)$path, 'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $file->getId()]), ], ]); @@ -943,7 +943,7 @@ protected function parseInvitation(INotification $notification, Room $room, IL10 ], 'call' => [ 'type' => 'call', - 'id' => $room->getId(), + 'id' => (string)$room->getId(), 'name' => $roomName, 'call-type' => $this->getRoomType($room), 'icon-url' => $this->avatarService->getAvatarUrl($room), @@ -969,7 +969,7 @@ protected function parseInvitation(INotification $notification, Room $room, IL10 ], 'call' => [ 'type' => 'call', - 'id' => $room->getId(), + 'id' => (string)$room->getId(), 'name' => $roomName, 'call-type' => $this->getRoomType($room), 'icon-url' => $this->avatarService->getAvatarUrl($room), @@ -1021,7 +1021,7 @@ protected function parseCall(INotification $notification, Room $room, IL10N $l): ], 'call' => [ 'type' => 'call', - 'id' => $room->getId(), + 'id' => (string)$room->getId(), 'name' => $roomName, 'call-type' => $this->getRoomType($room), 'icon-url' => $this->avatarService->getAvatarUrl($room), @@ -1049,7 +1049,7 @@ protected function parseCall(INotification $notification, Room $room, IL10N $l): $subject, [ 'call' => [ 'type' => 'call', - 'id' => $room->getId(), + 'id' => (string)$room->getId(), 'name' => $roomName, 'call-type' => $this->getRoomType($room), 'icon-url' => $this->avatarService->getAvatarUrl($room), @@ -1085,7 +1085,7 @@ protected function parsePasswordRequest(INotification $notification, Room $room, try { $file = [ 'type' => 'highlight', - 'id' => $share->getNodeId(), + 'id' => (string)$share->getNodeId(), 'name' => $share->getNode()->getName(), ]; } catch (\OCP\Files\NotFoundException $e) {