]> git.mxchange.org Git - friendica-addons.git/commitdiff
facebook: If the body is empty then the link is taken.
authorMichael Vogel <icarus@dabo.de>
Sun, 1 Apr 2012 14:30:25 +0000 (16:30 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 1 Apr 2012 14:30:25 +0000 (16:30 +0200)
facebook/facebook.php

index 1afa996df08aab3163ce906f024acef65093bba3..64eb3ee241a28810b994e44700573c9a228bcc9f 100755 (executable)
@@ -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;