two and a half small features
Features
- added optional grace period (useful when installing the add-on on an existing Etherpad instance: any pad created before
graceStart
will not be deleted beforegraceStart+graceDelay
, so that whoever created those pads have more time to realize what is going on) - added integration with
ep_mypads
: when configured so, will not delete pads created throughep_mypads
- refactored and homogenized the way the post-deletion path is determined (the half-feature, not user-visible)
Notes on code quality
- the
getFirstEditFun
function feels weird because it punches through thePad
abstraction of etherpad, but I have literally no idea how to do this otherwise - this is my first time doing anything JS, so I hope the quality of the code style is on par with what is expected