We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 04b95c25 authored by Zach Copley's avatar Zach Copley

Twitter bridge: Hack to get around PHP cURL's use of @ as a metachar,

which was keeping @reply messages from getting posted to Twitter.

parent c9c2d375
......@@ -1129,7 +1129,9 @@ function common_twitter_broadcast($notice, $flink) {
$twitter_user = $fuser->nickname;
$twitter_password = $flink->credentials;
$uri = 'http://www.twitter.com/statuses/update.json';
$statustxt = $notice->content;
// XXX: Hack to get around PHP cURL's use of @ being a a meta character
$statustxt = preg_replace('/^@/', ' @', $notice->content);
$options = array(
CURLOPT_USERPWD => "$twitter_user:$twitter_password",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment