Skip to content

Commit

Permalink
Merge pull request #18459 from GuiLeme/issue-18446
Browse files Browse the repository at this point in the history
fix: download of original presentation
  • Loading branch information
gustavotrott committed Aug 10, 2023
2 parents 969f86e + ce22c18 commit 456950a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -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)
Expand Down
Expand Up @@ -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,
Expand All @@ -19,7 +20,7 @@ const downloadPresentationUri = (podId) => {
}

const { originalFileURI: uri } = currentPresentation;
return uri;
return `${APP.bbbWebBase}/${uri}`;
};

const isPresentationDownloadable = (podId) => {
Expand Down

0 comments on commit 456950a

Please sign in to comment.