]> git.mxchange.org Git - friendica-addons.git/blobdiff - facebook/facebook.php
facebook: Changing the order which kind of text is taken when there is no message
[friendica-addons.git] / facebook / facebook.php
index 51f1fc846c424bd244230144c5ca10aca608e335..b9f4285957a6039e4b6732cd1c5d6c1c0545c0a5 100644 (file)
@@ -1091,13 +1091,13 @@ function facebook_post_hook(&$a,&$b) {
 
                                // Fallback - if message is empty
                                if(!strlen($msg))
-                                       $msg = $link;
+                                       $msg = $linkname;
 
                                if(!strlen($msg))
-                                       $msg = $image;
+                                       $msg = $link;
 
                                if(!strlen($msg))
-                                       $msg = $linkname;
+                                       $msg = $image;
 
                                // If there is nothing to post then exit
                                if(!strlen($msg))