|
|
@ -57,10 +57,13 @@ class TwitterController extends BaseController |
|
|
|
$tweet->photo = json_encode($photos, JSON_UNESCAPED_SLASHES); |
|
|
|
$tweet->mission_id = $mission_id; |
|
|
|
$tweet->tweet_date = date('Y-m-d H:i:s', strtotime($data['created_at'])); |
|
|
|
$tweet->author_username = $data['user']['screen_name']; |
|
|
|
$tweet->author_photo = $data['user']['profile_image_url_https']; |
|
|
|
if(isset($data['geo'])) |
|
|
|
$tweet->geo = json_encode($data['geo']); |
|
|
|
if(isset($data['place'])) |
|
|
|
$tweet->place = json_encode($data['place']); |
|
|
|
$tweet->json = json_encode($data); |
|
|
|
$tweet->save(); |
|
|
|
|
|
|
|
if($tweet->mission_id && $tweet->team_id) { |
|
|
|