mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
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,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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue