mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 09:26:14 -04:00
ExportEtherpad: New importEtherpad
, exportEtherpad
hooks
This commit is contained in:
parent
44fd70491d
commit
2facf3a0c5
4 changed files with 57 additions and 1 deletions
|
@ -55,5 +55,10 @@ exports.getPadRaw = async (padId, readOnlyId) => {
|
|||
})();
|
||||
const data = {[dstPfx]: pad};
|
||||
for (const [dstKey, p] of new Stream(records).batch(100).buffer(99)) data[dstKey] = await p;
|
||||
await hooks.aCallAll('exportEtherpad', {
|
||||
pad,
|
||||
data,
|
||||
dstPadId: readOnlyId || padId,
|
||||
});
|
||||
return data;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue