mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Fixed problems with images where the address contains special chars
This commit is contained in:
parent
129fff8fc1
commit
56fd821c7e
4 changed files with 16 additions and 5 deletions
|
@ -367,6 +367,9 @@ function twitter_post_hook(&$a,&$b) {
|
|||
$msg = implode(' ', $e);
|
||||
$msg .= '... ' . $shortlink;
|
||||
}
|
||||
|
||||
$msg = trim($msg);
|
||||
|
||||
// and now tweet it :-)
|
||||
if(strlen($msg)) {
|
||||
$result = $tweet->post('statuses/update', array('status' => $msg));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue