From b519f9f156607643d46aa30f843e599ab40e73c3 Mon Sep 17 00:00:00 2001 From: John McLear Date: Mon, 21 Dec 2015 17:32:05 +0000 Subject: [PATCH] include req and res in export convert hook --- src/node/handler/ExportHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/handler/ExportHandler.js b/src/node/handler/ExportHandler.js index 5e7d6de45..8f91ced23 100644 --- a/src/node/handler/ExportHandler.js +++ b/src/node/handler/ExportHandler.js @@ -135,7 +135,7 @@ exports.doExport = function(req, res, padId, type) destFile = tempDirectory + "/etherpad_export_" + randNum + "." + type; // Allow plugins to overwrite the convert in export process - hooks.aCallAll("exportConvert", {srcFile: srcFile, destFile: destFile}, function(err, result){ + hooks.aCallAll("exportConvert", {srcFile: srcFile, destFile: destFile, req: req, res: res}, function(err, result){ if(!err && result.length > 0){ // console.log("export handled by plugin", destFile); handledByPlugin = true;