mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
comments shouldnt be hard coded
This commit is contained in:
parent
a0d5718675
commit
fb1373b891
2 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue