mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 11:58:48 +00:00
Facebook: Trying to optimise the handling of videos
Tumblr: Changed the way the HTML is generated
This commit is contained in:
parent
cc74af9d09
commit
4f3e76e87e
2 changed files with 15 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue