mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 11:23:46 +00:00
Tumblr: Some changes
This commit is contained in:
parent
71ec9fdd98
commit
a4c505489e
1 changed files with 4 additions and 2 deletions
|
@ -202,14 +202,16 @@ function tumblr_send(&$a,&$b) {
|
||||||
$params['type'] = "video";
|
$params['type'] = "video";
|
||||||
$params['embed'] = $link;
|
$params['embed'] = $link;
|
||||||
if ($b['title'] != '')
|
if ($b['title'] != '')
|
||||||
$params['caption'] = '<p><strong><a href="'.$link.'">'.$b['title']."</a></strong></p>".bbcode($body);
|
$params['caption'] = '<h1><a href="'.$link.'">'.$b['title'].
|
||||||
|
"</a></h1><p>".bbcode($body)."</p>";
|
||||||
else
|
else
|
||||||
$params['caption'] = bbcode($body);
|
$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'];
|
||||||
$params['url'] = $link;
|
$params['url'] = $link;
|
||||||
$params['description'] = bbcode($body);
|
//$params['description'] = bbcode($body);
|
||||||
|
$params['description'] = bbcode($b["body"]);
|
||||||
} else {
|
} else {
|
||||||
$params['type'] = "regular";
|
$params['type'] = "regular";
|
||||||
$params['title'] = $b['title'];
|
$params['title'] = $b['title'];
|
||||||
|
|
Loading…
Reference in a new issue