Skip to content

Commit

Permalink
fix(Notification): Fix rich object parameters with non-string values
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin authored and backportbot[bot] committed Sep 10, 2024
1 parent b762903 commit e0e4dc1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,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),
Expand Down Expand Up @@ -388,16 +388,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()]),
],
]);
Expand Down Expand Up @@ -956,7 +956,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),
Expand All @@ -982,7 +982,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),
Expand Down Expand Up @@ -1034,7 +1034,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),
Expand All @@ -1059,7 +1059,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),
Expand Down Expand Up @@ -1095,7 +1095,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) {
Expand Down

0 comments on commit e0e4dc1

Please sign in to comment.