Skip to content

Commit

Permalink
Merge pull request #765 from nextcloud/bugfix/763/comment-notification
Browse files Browse the repository at this point in the history
Trigger comment notification on update only
  • Loading branch information
juliusknorr authored Dec 5, 2018
2 parents 6b86d8a + 5764344 commit 3162ff4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Activity/CommentEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ public function handle(CommentsEvent $event) {
}

$applicableEvents = [
CommentsEvent::EVENT_PRE_UPDATE,
CommentsEvent::EVENT_UPDATE,
CommentsEvent::EVENT_DELETE,
CommentsEvent::EVENT_UPDATE
];
if(in_array($eventType, $applicableEvents)) {
$this->notificationHandler($event);
Expand Down

0 comments on commit 3162ff4

Please sign in to comment.