mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
plugins: include more data within padUpdate hook (#4425)
* Including more data at pad update event * docs: new context fields in padUpdate Co-authored-by: Pedro Beschorner Marin <pedrobmarin@gmail.com>
This commit is contained in:
parent
1e7a9e1791
commit
94cb000e8f
2 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,7 @@ Pad.prototype.appendRevision = async function appendRevision(aChangeset, author)
|
|||
if (this.head == 0) {
|
||||
hooks.callAll("padCreate", {'pad':this, 'author': author});
|
||||
} else {
|
||||
hooks.callAll("padUpdate", {'pad':this, 'author': author});
|
||||
hooks.callAll("padUpdate", {'pad':this, 'author': author, 'revs': newRev, 'changeset': aChangeset});
|
||||
}
|
||||
|
||||
await Promise.all(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue