From 700cb8c4295684a3ea45e4137e4d450e2f37e618 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 8 Jul 2017 12:10:19 -0700 Subject: [PATCH] add hashtag to tweets --- app/Listeners/TweetAcceptedListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Listeners/TweetAcceptedListener.php b/app/Listeners/TweetAcceptedListener.php index 08a1d90..1d89ebc 100644 --- a/app/Listeners/TweetAcceptedListener.php +++ b/app/Listeners/TweetAcceptedListener.php @@ -36,7 +36,7 @@ class TweetAcceptedListener implements ShouldQueue $newMissionStatus = $tweet->mission->complete($tweet->team); if($event->previousMissionStatus == false && $newMissionStatus == true) { - $text = 'Team '.$tweet->team->name.' completed mission '.$tweet->mission_id.'! '.$tweet->mission->hashtag; + $text = 'Team '.$tweet->team->name.' completed mission '.$tweet->mission_id.'! '.$tweet->mission->hashtag.' #spy30'; Log::info("Tweeting: $text"); $params = [ @@ -60,7 +60,7 @@ class TweetAcceptedListener implements ShouldQueue ->where('m2_transit_center_id', $this_tc) ->count(); if($other_teams == 0) { - $text = 'Team '.$tweet->team->name.' is currently the only team to have visited '.$tweet->transit_center->name.'!'; + $text = 'Team '.$tweet->team->name.' is currently the only team to have visited '.$tweet->transit_center->name.'! #spy30'; Log::info("Tweeting: $text"); $params = [ 'attachment_url' => 'https://twitter.com/'.$tweet->player->twitter.'/status/'.$tweet->tweet_id,