Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Fix for @ mentions at beginning of tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
J7mbo committed Jun 19, 2013
1 parent 98d9f53 commit b8cf4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitterAPIExchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function setPostfields(array $array)

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

$this->postfields = $array;
Expand Down

0 comments on commit b8cf4c1

Please sign in to comment.