Skip to content

Commit

Permalink
Trigger comment notification on update only
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Dec 5, 2018
1 parent e1080ff commit 5764344
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 5764344

Please sign in to comment.