Skip to content

Commit

Permalink
fix(ocs-api): fix attachment downloadUrl in ocs/v2.php/apps/mail/mess…
Browse files Browse the repository at this point in the history
…age/ID

Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Jul 24, 2024
1 parent 503e2b8 commit 507ad47
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 507ad47

Please sign in to comment.