]> git.mxchange.org Git - friendica-addons.git/commitdiff
Tumblr: The video export now shows the title
authorMichael Vogel <icarus@dabo.de>
Tue, 24 Apr 2012 00:04:51 +0000 (02:04 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 24 Apr 2012 00:04:51 +0000 (02:04 +0200)
tumblr/tumblr.php

index 42518c050085045b182b8cc9992d83d48d215137..650e0b183d73a54a5a1a5d855422fecf928c6bfa 100755 (executable)
@@ -201,7 +201,10 @@ function tumblr_send(&$a,&$b) {
                if (($link != '') and $video) {
                        $params['type'] = "video";
                        $params['embed'] = $link;
-                       $params['caption'] = bbcode($body);
+                       if ($b['title'] != '')
+                               $params['caption'] = '<p><strong><a href="'.$link.'">'.$b['title']."</a></strong></p>".bbcode($body);
+                       else
+                               $params['caption'] = bbcode($body);
                } else if (($link != '') and !$video) {
                        $params['type'] = "link";
                        $params['name'] = $b['title'];