Facebook: Trying to optimise the handling of videos

Tumblr: Changed the way the HTML is generated
This commit is contained in:
Michael Vogel 2012-07-05 23:37:28 +02:00
parent cc74af9d09
commit 4f3e76e87e
2 changed files with 15 additions and 12 deletions

View file

@ -204,19 +204,18 @@ function tumblr_send(&$a,&$b) {
$params['embed'] = $link;
if ($title != '')
$params['caption'] = '<h1><a href="'.$link.'">'.$title.
"</a></h1><p>".bbcode($body)."</p>";
"</a></h1><p>".bbcode($body, false, false)."</p>";
else
$params['caption'] = bbcode($body);
$params['caption'] = bbcode($body, false, false);
} else if (($link != '') and !$video) {
$params['type'] = "link";
$params['name'] = $title;
$params['url'] = $link;
//$params['description'] = bbcode($body);
$params['description'] = bbcode($b["body"]);
$params['description'] = bbcode($b["body"], false, false);
} else {
$params['type'] = "regular";
$params['title'] = $title;
$params['body'] = bbcode($b['body']);
$params['body'] = bbcode($b['body'], false, false);
}
$x = post_url($tmbl_blog,$params);