mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
API: getText
with old revision should only return text, not atext
Co-authored-by: Richard Hansen <rhansen@rhansen.org>
This commit is contained in:
parent
75ee1ef535
commit
6cca27dea6
3 changed files with 22 additions and 1 deletions
|
@ -172,7 +172,9 @@ exports.getText = async (padID, rev) => {
|
|||
}
|
||||
|
||||
// get the text of this revision
|
||||
const text = await pad.getInternalRevisionAText(rev);
|
||||
// getInternalRevisionAText() returns an atext object but we only want the .text inside it.
|
||||
// Details at https://github.com/ether/etherpad-lite/issues/5073
|
||||
const {text} = await pad.getInternalRevisionAText(rev);
|
||||
return {text};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue