Skip to content

Commit

Permalink
Merge pull request #2042 from nextcloud/backport/2041/stable30
Browse files Browse the repository at this point in the history
[stable30] fix(notifications): Fix notification parameter types
  • Loading branch information
nickvergessen authored Sep 16, 2024
2 parents 53863cc + 101b310 commit 84c599d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Notifier/AdminNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public function prepare(INotification $notification, string $languageCode): INot
],
'item' => [
'type' => 'file',
'id' => $file1->getId(),
'id' => (string)$file1->getId(),
'name' => $file1->getName(),
'size' => $file1->getSize(),
'size' => (string)$file1->getSize(),
'path' => $path1,
'link' => $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $file1->getId()]),
'mimetype' => $file1->getMimetype(),
Expand All @@ -124,9 +124,9 @@ public function prepare(INotification $notification, string $languageCode): INot
],
'file-3' => [
'type' => 'file',
'id' => $file2->getId(),
'id' => (string)$file2->getId(),
'name' => $file2->getName(),
'size' => $file2->getSize(),
'size' => (string)$file2->getSize(),
'path' => $path2,
'link' => $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $file2->getId()]),
'mimetype' => $file2->getMimetype(),
Expand Down

0 comments on commit 84c599d

Please sign in to comment.