don't send empty tweets through to twitter/statusnet

This commit is contained in:
Friendika 2011-02-10 04:22:04 -08:00
parent 1d12a2be69
commit e2d6e986bc
2 changed files with 20 additions and 18 deletions

View file

@ -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));
}
}

View file

@ -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));
}
}