Skip to content

Commit

Permalink
Merge pull request #2041 from nextcloud/bugfix/2035/notification-data
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Sep 16, 2024
2 parents 24dc1bd + a3dc55c commit 880a19e
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 880a19e

Please sign in to comment.