Tumblr: The video export now shows the title

pull/62/head
Michael Vogel 2012-04-24 02:04:51 +02:00
parent 64c68ac978
commit 71ec9fdd98
1 changed files with 4 additions and 1 deletions

View File

@ -201,7 +201,10 @@ function tumblr_send(&$a,&$b) {
if (($link != '') and $video) { if (($link != '') and $video) {
$params['type'] = "video"; $params['type'] = "video";
$params['embed'] = $link; $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) { } else if (($link != '') and !$video) {
$params['type'] = "link"; $params['type'] = "link";
$params['name'] = $b['title']; $params['name'] = $b['title'];