entirely possible media/links were the only thing posted - don't forward empty message to twitter/SN
This commit is contained in:
@@ -235,7 +235,8 @@ function statusnet_post_hook(&$a,&$b) {
|
||||
$msg .= '... ' . $shortlink;
|
||||
}
|
||||
// and now tweet it :-)
|
||||
$dent->post('statuses/update', array('status' => $msg));
|
||||
if(strlen($msg))
|
||||
$dent->post('statuses/update', array('status' => $msg));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user