entirely possible media/links were the only thing posted - don't forward empty message to twitter/SN

This commit is contained in:
Friendika 2011-02-10 03:51:42 -08:00
parent 2e78ed00f6
commit a18bb816cd
2 changed files with 20 additions and 18 deletions

View file

@ -235,6 +235,7 @@ function statusnet_post_hook(&$a,&$b) {
$msg .= '... ' . $shortlink; $msg .= '... ' . $shortlink;
} }
// and now tweet it :-) // and now tweet it :-)
if(strlen($msg))
$dent->post('statuses/update', array('status' => $msg)); $dent->post('statuses/update', array('status' => $msg));
} }
} }

View file

@ -209,6 +209,7 @@ function twitter_post_hook(&$a,&$b) {
$msg .= '... ' . $shortlink; $msg .= '... ' . $shortlink;
} }
// and now tweet it :-) // and now tweet it :-)
if(strlen($msg))
$tweet->post('statuses/update', array('status' => $msg)); $tweet->post('statuses/update', array('status' => $msg));
} }
} }