Skip to content
Snippets Groups Projects
Unverified Commit f39ec0bc authored by Robb Lewis's avatar Robb Lewis
Browse files

Proper urls for tweets

parent eb3180cc
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -37,7 +37,7 @@ class TweetPresenter extends Presenter {
 
public function metadata()
{
$url = "https://twitter.com/statuses/".$this->tweetid;
$url = "https://twitter.com/" . env('TWITTER_USERNAME') . "/status/" .$this->tweetid;
$metadata = '<a href="'.$url.'">'.$this->time.'</a>';
 
if ($this->place)
Loading
Loading
@@ -45,7 +45,7 @@ class TweetPresenter extends Presenter {
 
if ($replyData = $this->reply)
{
$metadata = $metadata . ' in <a href="https://twitter.com/statuses/' . $replyData['id'] . '">reply to @' . $replyData['username'] . '</a>';
$metadata = $metadata . ' in <a href="https://twitter.com/' . $replyData['username'] . '/status/' . $replyData['id'] . '">reply to @' . $replyData['username'] . '</a>';
 
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment