forked from friendica/friendica-addons
facebook: If the body is empty then the link is taken.
This commit is contained in:
parent
ced503973a
commit
26ad8dc79a
|
@ -956,15 +956,15 @@ function facebook_post_hook(&$a,&$b) {
|
|||
}
|
||||
|
||||
// Fallback - if message is empty
|
||||
if(!strlen($msg))
|
||||
$msg = $linkname;
|
||||
|
||||
if(!strlen($msg))
|
||||
$msg = $link;
|
||||
|
||||
if(!strlen($msg))
|
||||
$msg = $image;
|
||||
|
||||
if(!strlen($msg))
|
||||
$msg = $linkname;
|
||||
|
||||
// If there is nothing to post then exit
|
||||
if(!strlen($msg))
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue