From fb1373b891b6b2cad21a7a9f53f830b6392e32ff Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 3 Nov 2020 22:31:16 +0000 Subject: [PATCH] comments shouldnt be hard coded --- src/node/utils/ExportEtherpad.js | 1 - src/node/utils/ImportEtherpad.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/node/utils/ExportEtherpad.js b/src/node/utils/ExportEtherpad.js index e7aa9904a..2af4f7bfe 100644 --- a/src/node/utils/ExportEtherpad.js +++ b/src/node/utils/ExportEtherpad.js @@ -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); } diff --git a/src/node/utils/ImportEtherpad.js b/src/node/utils/ImportEtherpad.js index 927eaa98a..1a61efac0 100644 --- a/src/node/utils/ImportEtherpad.js +++ b/src/node/utils/ImportEtherpad.js @@ -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; } }); })