Skip to content

Commit

Permalink
Merge pull request #9910 from nextcloud/fix/noid/ocs-message-attachme…
Browse files Browse the repository at this point in the history
…nt-download-url

Fix attachment downloadUrl in OCS getMail endpoint
  • Loading branch information
miaulalala authored Jul 24, 2024
2 parents 503e2b8 + 507ad47 commit 9b3225c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/MessageApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public function getRaw(int $id): DataResponse {
* @return array
*/
private function enrichDownloadUrl(int $id, array $attachment) {
$downloadUrl = $this->urlGenerator->linkToOCSRouteAbsolute('mail.messageApi.downloadAttachment',
$downloadUrl = $this->urlGenerator->linkToOCSRouteAbsolute('mail.messageApi.getAttachment',
[
'id' => $id,
'attachmentId' => $attachment['id'],
Expand Down

0 comments on commit 9b3225c

Please sign in to comment.