mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
ImportHandler: Pass the pad ID to the import
hook
This enables plugins to log the pad ID if desired.
This commit is contained in:
parent
caf4e9f28c
commit
fe87e2df87
2 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,7 @@ const doImport = async (req, res, padId) => {
|
|||
|
||||
const destFile = path.join(tmpDirectory, `etherpad_import_${randNum}.${exportExtension}`);
|
||||
const importHandledByPlugin =
|
||||
(await hooks.aCallAll('import', {srcFile, destFile, fileEnding})).some((x) => x);
|
||||
(await hooks.aCallAll('import', {srcFile, destFile, fileEnding, padId})).some((x) => x);
|
||||
const fileIsEtherpad = (fileEnding === '.etherpad');
|
||||
const fileIsHTML = (fileEnding === '.html' || fileEnding === '.htm');
|
||||
const fileIsTXT = (fileEnding === '.txt');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue