MCPcopy Index your code
hub / github.com/ether/etherpad / _createClearAuthorship

Method _createClearAuthorship

src/node/utils/padDiff.ts:81–90  ·  view source on GitHub ↗
(rev: any)

Source from the content-addressed store, hash-verified

79 return true;
80 }
81 async _createClearAuthorship(rev: any){
82 const atext = await this._pad.getInternalRevisionAText(rev);
83
84 // build clearAuthorship changeset
85 const builder = new Builder(atext.text.length);
86 builder.keepText(atext.text, [['author', '']], this._pad.pool);
87 const changeset = builder.toString();
88
89 return changeset;
90 }
91
92 async _createClearStartAtext(rev: any){
93 // get the atext of this revision

Callers 1

Calls 2

toStringMethod · 0.45

Tested by

no test coverage detected