From 5b06454cafbd3d2dec84a6e8cb490f3729d4964a Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Mon, 30 Sep 2024 09:23:00 +0200 Subject: [PATCH 1/2] Get meeting-mediafile url with url property --- .../services/export/motion-pdf.service/motion-pdf.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts b/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts index 7c95c52843..639b07308a 100644 --- a/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts +++ b/client/src/app/site/pages/meetings/pages/motions/services/export/motion-pdf.service/motion-pdf.service.ts @@ -737,7 +737,7 @@ export class MotionPdfService { for (const key of Object.keys(motion.attachment_meeting_mediafiles)) { const attachment = motion.attachment_meeting_mediafiles[key]; - const fileUrl = attachment.getDetailStateUrl(); + const fileUrl = attachment.url; if (this.pdfImagesService.isImageUsableForPdf(attachment.mimetype)) { this.pdfImagesService.addImageUrl(fileUrl); attachments.push({ From 59c6a3263a3c69831e3418d6ebb3d46fc6105a8e Mon Sep 17 00:00:00 2001 From: Ludwig Reiter Date: Tue, 1 Oct 2024 10:17:46 +0200 Subject: [PATCH 2/2] Fix meeting mediafile getDetailStateUrl and use it --- .../pages/mediafiles/view-models/view-meeting-mediafile.ts | 4 ++++ .../services/export/motion-pdf.service/motion-pdf.service.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/mediafiles/view-models/view-meeting-mediafile.ts b/client/src/app/site/pages/meetings/pages/mediafiles/view-models/view-meeting-mediafile.ts index de167edc21..eafa4db378 100644 --- a/client/src/app/site/pages/meetings/pages/mediafiles/view-models/view-meeting-mediafile.ts +++ b/client/src/app/site/pages/meetings/pages/mediafiles/view-models/view-meeting-mediafile.ts @@ -51,6 +51,10 @@ export class ViewMeetingMediafile extends BaseProjectableViewModel