comments shouldnt be hard coded

export-etherpad-hooks
John McLear 2020-11-03 22:31:16 +00:00
parent a0d5718675
commit fb1373b891
2 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ exports.getPadRaw = async function(padId) {
let padcontent = await db.get(padKey);
let records = [ padKey ];
for (let i = 0; i <= padcontent.head; i++) {
records.push(padKey + ":revs:" + i);
}

View File

@ -71,7 +71,7 @@ exports.setPadRaw = function(padId, records)
hooks.aCallAll('exportEtherpadAdditionalContent').then((prefixes) => {
prefixes.forEach(async function(prefix) {
if(key.split(":")[0] === prefix){
newKey = "comments:" + padId;
newKey = prefix + ":" + padId;
}
});
})