mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 10:56:16 -04: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 padcontent = await db.get(padKey);
|
||||||
|
|
||||||
let records = [ padKey ];
|
let records = [ padKey ];
|
||||||
|
|
||||||
for (let i = 0; i <= padcontent.head; i++) {
|
for (let i = 0; i <= padcontent.head; i++) {
|
||||||
records.push(padKey + ":revs:" + i);
|
records.push(padKey + ":revs:" + i);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ exports.setPadRaw = function(padId, records)
|
||||||
hooks.aCallAll('exportEtherpadAdditionalContent').then((prefixes) => {
|
hooks.aCallAll('exportEtherpadAdditionalContent').then((prefixes) => {
|
||||||
prefixes.forEach(async function(prefix) {
|
prefixes.forEach(async function(prefix) {
|
||||||
if(key.split(":")[0] === prefix){
|
if(key.split(":")[0] === prefix){
|
||||||
newKey = "comments:" + padId;
|
newKey = prefix + ":" + padId;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue