From 7f08e5c0f750281d11c22bc5d72efa0db05351bf Mon Sep 17 00:00:00 2001 From: Maximilian Kreuzkam Date: Tue, 17 Oct 2023 10:50:28 +0200 Subject: [PATCH] EW-553: Export description of etherpad content as title of weblink. --- .../service/common-cartridge-export.service.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/server/src/modules/learnroom/service/common-cartridge-export.service.ts b/apps/server/src/modules/learnroom/service/common-cartridge-export.service.ts index 25077d84338..b41b6314fa8 100644 --- a/apps/server/src/modules/learnroom/service/common-cartridge-export.service.ts +++ b/apps/server/src/modules/learnroom/service/common-cartridge-export.service.ts @@ -115,8 +115,18 @@ export class CommonCartridgeExportService { if (content.component === ComponentType.ETHERPAD) { return version === CommonCartridgeVersion.V_1_3_0 - ? { ...commonProps, type: CommonCartridgeResourceType.WEB_LINK_V3, url: content.content.url } - : { ...commonProps, type: CommonCartridgeResourceType.WEB_LINK_V1, url: content.content.url }; + ? { + ...commonProps, + type: CommonCartridgeResourceType.WEB_LINK_V3, + url: content.content.url, + title: content.content.description, + } + : { + ...commonProps, + type: CommonCartridgeResourceType.WEB_LINK_V1, + url: content.content.url, + title: content.content.description, + }; } return undefined;