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

Commit b8cf4c1

Browse files
committed
Fix for @ mentions at beginning of tweets
1 parent 98d9f53 commit b8cf4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TwitterAPIExchange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function setPostfields(array $array)
6767

6868
if (isset($array['status']) && substr($array['status'], 0, 1) === '@')
6969
{
70-
$array['status'] = sprintf(" %s", $array['status']);
70+
$array['status'] = sprintf("\0%s", $array['status']);
7171
}
7272

7373
$this->postfields = $array;

0 commit comments

Comments
 (0)