pass file ending

This commit is contained in:
John McLear 2020-03-17 13:07:14 +00:00
parent 28102d8e1f
commit 8261229323

View file

@ -111,7 +111,7 @@ async function doImport(req, res, padId)
let destFile = path.join(tmpDirectory, "etherpad_import_" + randNum + "." + exportExtension);
// Logic for allowing external Import Plugins
let result = await hooks.aCallAll("import", { srcFile, destFile });
let result = await hooks.aCallAll("import", { srcFile, destFile, fileEnding });
let importHandledByPlugin = (result.length > 0); // This feels hacky and wrong..
let fileIsEtherpad = (fileEnding === ".etherpad");