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