Merge pull request #765 from nextcloud/bugfix/763/comment-notification

Trigger comment notification on update only
This commit is contained in:
Julius Härtl
2018-12-05 16:08:31 +01:00
committed by GitHub
+1 -3
View File
@@ -63,9 +63,7 @@ class CommentEventHandler implements ICommentsEventHandler {
}
$applicableEvents = [
CommentsEvent::EVENT_PRE_UPDATE,
CommentsEvent::EVENT_UPDATE,
CommentsEvent::EVENT_DELETE,
CommentsEvent::EVENT_UPDATE
];
if(in_array($eventType, $applicableEvents)) {
$this->notificationHandler($event);