|
@ -59,7 +59,7 @@ class TwitterController extends BaseController |
|
|
$tweet->tweet_date = date('Y-m-d H:i:s', strtotime($data['created_at'])); |
|
|
$tweet->tweet_date = date('Y-m-d H:i:s', strtotime($data['created_at'])); |
|
|
$tweet->save(); |
|
|
$tweet->save(); |
|
|
|
|
|
|
|
|
if($tweet->mission_id) { |
|
|
|
|
|
|
|
|
if($tweet->mission_id && $tweet->team_id) { |
|
|
event(new NewTweetEvent($tweet)); |
|
|
event(new NewTweetEvent($tweet)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|