emit pre-update event for comments
* notifications can be cleaned up, no polluted DB
* updating comments will re-notify users or remove notifications, depending on the message
Signed-off-by:
Arthur Schiwon <blizzz@arthur-schiwon.de>
Showing
- apps/comments/lib/EventHandler.php 19 additions, 8 deletionsapps/comments/lib/EventHandler.php
- apps/comments/lib/Notification/Listener.php 3 additions, 1 deletionapps/comments/lib/Notification/Listener.php
- apps/comments/tests/Unit/EventHandlerTest.php 3 additions, 34 deletionsapps/comments/tests/Unit/EventHandlerTest.php
- apps/comments/tests/Unit/Notification/ListenerTest.php 2 additions, 0 deletionsapps/comments/tests/Unit/Notification/ListenerTest.php
- apps/dav/lib/Comments/CommentNode.php 1 addition, 1 deletionapps/dav/lib/Comments/CommentNode.php
- lib/private/Comments/Manager.php 6 additions, 0 deletionslib/private/Comments/Manager.php
- lib/public/Comments/CommentsEvent.php 4 additions, 3 deletionslib/public/Comments/CommentsEvent.php
- tests/lib/Comments/ManagerTest.php 2 additions, 2 deletionstests/lib/Comments/ManagerTest.php
Loading
Please register or sign in to comment