From 9d6174ad173be6849781626d3b4b75d6ceb63bc0 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 8 Jul 2017 07:43:46 -0700 Subject: [PATCH] use underscore if no username found --- app/Tweet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Tweet.php b/app/Tweet.php index d856a4a..1fea4b8 100644 --- a/app/Tweet.php +++ b/app/Tweet.php @@ -56,7 +56,7 @@ class Tweet extends Model } public function twitter_permalink() { - return 'https://twitter.com/'.($this->player ? $this->player->twitter : $this->author_username).'/status/'.$this->tweet_id; + return 'https://twitter.com/'.($this->player ? $this->player->twitter : '_').'/status/'.$this->tweet_id; } public static function claimed_timeout() {