[issue-18446] - fix download of original presentation

This commit is contained in:
GuiLeme 2023-08-04 17:38:17 -03:00
parent 1aba53885b
commit ce22c1894d
2 changed files with 3 additions and 2 deletions

View File

@ -164,7 +164,7 @@ trait MakePresentationDownloadReqMsgHdlr extends RightsManagementTrait {
PresentationSender.broadcastSetPresentationDownloadableEvtMsg(bus, meetingId, "DEFAULT_PRESENTATION_POD", "not-used", presId, true, filename)
val fileURI = List("bigbluebutton", "presentation", "download", meetingId, s"${presId}?presFilename=${presId}.${presFilenameExt}&filename=${filename}").mkString("", File.separator, "")
val fileURI = List("presentation", "download", meetingId, s"${presId}?presFilename=${presId}.${presFilenameExt}&filename=${filename}").mkString("", File.separator, "")
val event = buildNewPresFileAvailable(fileURI, presId, m.body.typeOfExport)
handle(event, liveMeeting, bus)

View File

@ -6,6 +6,7 @@ import { safeMatch } from '/imports/utils/string-utils';
const POLL_SETTINGS = Meteor.settings.public.poll;
const MAX_CUSTOM_FIELDS = POLL_SETTINGS.maxCustom;
const MAX_CHAR_LIMIT = POLL_SETTINGS.maxTypedAnswerLength;
const APP = Meteor.settings.public.app;
const getCurrentPresentation = (podId) => Presentations.findOne({
podId,
@ -19,7 +20,7 @@ const downloadPresentationUri = (podId) => {
}
const { originalFileURI: uri } = currentPresentation;
return uri;
return `${APP.bbbWebBase}/${uri}`;
};
const isPresentationDownloadable = (podId) => {