From 9c68bad7d92a598bc9d1f63a89cd8b33a8ccd60a Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Tue, 4 Jul 2017 11:38:17 -0700 Subject: [PATCH] only push tweets to dashboard if a team is assigned --- app/Http/Controllers/TwitterController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TwitterController.php b/app/Http/Controllers/TwitterController.php index 2fb19fc..8e050c8 100644 --- a/app/Http/Controllers/TwitterController.php +++ b/app/Http/Controllers/TwitterController.php @@ -59,7 +59,7 @@ class TwitterController extends BaseController $tweet->tweet_date = date('Y-m-d H:i:s', strtotime($data['created_at'])); $tweet->save(); - if($tweet->mission_id) { + if($tweet->mission_id && $tweet->team_id) { event(new NewTweetEvent($tweet)); }