From 26ad8dc79aed27a84a8576d25cee6d09f4d89ad1 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 1 Apr 2012 16:30:25 +0200 Subject: [PATCH] facebook: If the body is empty then the link is taken. --- facebook/facebook.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/facebook/facebook.php b/facebook/facebook.php index 1afa996d..64eb3ee2 100755 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -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; -- 2.39.5