Trigger comment notification on update only
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -63,9 +63,7 @@ class CommentEventHandler implements ICommentsEventHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$applicableEvents = [
|
$applicableEvents = [
|
||||||
CommentsEvent::EVENT_PRE_UPDATE,
|
CommentsEvent::EVENT_UPDATE
|
||||||
CommentsEvent::EVENT_UPDATE,
|
|
||||||
CommentsEvent::EVENT_DELETE,
|
|
||||||
];
|
];
|
||||||
if(in_array($eventType, $applicableEvents)) {
|
if(in_array($eventType, $applicableEvents)) {
|
||||||
$this->notificationHandler($event);
|
$this->notificationHandler($event);
|
||||||
|
|||||||
Reference in New Issue
Block a user