mirror of
https://github.com/friendica/friendica
synced 2024-05-18 05:06:42 +02:00
don't send empty tweets through to twitter/statusnet
This commit is contained in:
parent
1d12a2be69
commit
e2d6e986bc
|
@ -235,6 +235,7 @@ function statusnet_post_hook(&$a,&$b) {
|
|||
$msg .= '... ' . $shortlink;
|
||||
}
|
||||
// and now tweet it :-)
|
||||
if(strlen($msg))
|
||||
$dent->post('statuses/update', array('status' => $msg));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -209,6 +209,7 @@ function twitter_post_hook(&$a,&$b) {
|
|||
$msg .= '... ' . $shortlink;
|
||||
}
|
||||
// and now tweet it :-)
|
||||
if(strlen($msg))
|
||||
$tweet->post('statuses/update', array('status' => $msg));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue