Skip to content

Commit

Permalink
Hack to work around Twitter messages starting with an '@' symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
mncaudill committed Sep 29, 2012
1 parent 732876b commit 083e7fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/flickr_photos_upload_oauth_echo.php
Expand Up @@ -59,8 +59,11 @@
exit;
}

// See that blank space? If a Twitter message starts with an '@' symbol,
// that gets interpreted by curl as a *filepath*. Flickr strips that
// blank space on save so this hack gets around that (nolan-20120929)
$args = array(
'title' => $_POST['message'],
'title' => ' ' . $_POST['message'],
);

$res = flickr_photos_upload($user, $filepath, $args);
Expand Down

0 comments on commit 083e7fa

Please sign in to comment.