From 09da289c2fb18475f372bee24e885617da484e0b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 17 Oct 2015 22:19:49 -0400 Subject: Move slack, hipchat and jabber integrations to plugins --- app/Notification/ActivityStream.php | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'app/Notification') diff --git a/app/Notification/ActivityStream.php b/app/Notification/ActivityStream.php index 65ae64b1..325732ec 100644 --- a/app/Notification/ActivityStream.php +++ b/app/Notification/ActivityStream.php @@ -35,7 +35,6 @@ class ActivityStream extends Base implements NotificationInterface public function notifyProject(array $project, $event_name, array $event_data) { if ($this->userSession->isLogged()) { - $this->projectActivity->createEvent( $project['id'], $event_data['task']['id'], @@ -43,16 +42,6 @@ class ActivityStream extends Base implements NotificationInterface $event_name, $event_data ); - - // TODO: need to be moved to external plugins - foreach (array('slackWebhook', 'hipchatWebhook', 'jabber') as $model) { - $this->$model->notify( - $project['id'], - $event_data['task']['id'], - $event_name, - $event_data - ); - } } } } -- cgit v1.2.3