Skip to content

Commit

Permalink
Fix for tweets starting with @ character
Browse files Browse the repository at this point in the history
  • Loading branch information
J7mbo committed Jun 17, 2013
1 parent 5c2b97e commit ece2d60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TwitterAPIExchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public function setPostfields(array $array)
throw new Exception('You can only choose get OR post fields.');
}

if (isset($array['status']) && substr($array['status'], 0, 1) === '@')
{
$array['status'] = sprintf(" %s", $array['status']);
}

$this->postfields = $array;

return $this;
Expand Down

0 comments on commit ece2d60

Please # to comment.