Pad: Plumb author ID through mutation operations

This commit is contained in:
Richard Hansen 2022-02-17 00:01:07 -05:00
parent 5f60b3aab2
commit 3b8549342a
7 changed files with 35 additions and 30 deletions

View file

@ -27,7 +27,7 @@ const supportedElems = require('../../static/js/contentcollector').supportedElem
const logger = log4js.getLogger('ImportEtherpad');
exports.setPadRaw = async (padId, r) => {
exports.setPadRaw = async (padId, r, authorId = '') => {
const records = JSON.parse(r);
// get supported block Elements from plugins, we will use this later.
@ -110,7 +110,7 @@ exports.setPadRaw = async (padId, r) => {
return v;
},
});
await pad.init();
await pad.init(null, authorId);
await pad.check();
await Promise.all([