entirely possible media/links were the only thing posted - don't forward empty message to twitter/SN
This commit is contained in:
parent
2e78ed00f6
commit
a18bb816cd
2 changed files with 20 additions and 18 deletions
|
@ -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