Changes proposed in this pull request:
Dispatches an event before the discussion is saved and other discussions are deleted. Allows other extensions to introduce custom behavior. I think this is cleaner and keeps the current logic simple and straightforward.
Reviewers should focus on:
Screenshot
Confirmed
[ ] Frontend changes: tested on a local Flarum installation.
[ ] Backend changes: tests are green (run composer test).
Supersedes #50
Changes proposed in this pull request: Dispatches an event before the discussion is saved and other discussions are deleted. Allows other extensions to introduce custom behavior. I think this is cleaner and keeps the current logic simple and straightforward.
Reviewers should focus on:
Screenshot
Confirmed
composer test
).Required changes: