facebook: If the body is empty then the link is taken.

pull/34/head
Michael Vogel 2012-04-01 16:30:25 +02:00
parent ced503973a
commit 26ad8dc79a
1 changed files with 3 additions and 3 deletions

View File

@ -956,15 +956,15 @@ function facebook_post_hook(&$a,&$b) {
} }
// Fallback - if message is empty // Fallback - if message is empty
if(!strlen($msg))
$msg = $linkname;
if(!strlen($msg)) if(!strlen($msg))
$msg = $link; $msg = $link;
if(!strlen($msg)) if(!strlen($msg))
$msg = $image; $msg = $image;
if(!strlen($msg))
$msg = $linkname;
// If there is nothing to post then exit // If there is nothing to post then exit
if(!strlen($msg)) if(!strlen($msg))
return; return;