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) {