mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 03:48:49 +00:00
pumpio, statusnet, tumblr, twitter, wordpress: Changed the way, shares are displayed
twitter: Look for the entities when importing tweets.
This commit is contained in:
parent
e28b559bfc
commit
bbc8a1328d
7 changed files with 178 additions and 29 deletions
|
@ -350,18 +350,18 @@ function tumblr_send(&$a,&$b) {
|
|||
$params['embed'] = $link;
|
||||
if ($title != '')
|
||||
$params['caption'] = '<h1><a href="'.$link.'">'.$title.
|
||||
"</a></h1><p>".bbcode($body, false, false)."</p>";
|
||||
"</a></h1><p>".bbcode($body, false, false, 4)."</p>";
|
||||
else
|
||||
$params['caption'] = bbcode($body, false, false);
|
||||
$params['caption'] = bbcode($body, false, false, 4);
|
||||
} else if (($link != '') and !$video) {
|
||||
$params['type'] = "link";
|
||||
$params['title'] = $title;
|
||||
$params['url'] = $link;
|
||||
$params['description'] = bbcode($b["body"], false, false);
|
||||
$params['description'] = bbcode($b["body"], false, false, 4);
|
||||
} else {
|
||||
$params['type'] = "text";
|
||||
$params['title'] = $title;
|
||||
$params['body'] = bbcode($b['body'], false, false);
|
||||
$params['body'] = bbcode($b['body'], false, false, 4);
|
||||
}
|
||||
|
||||
$consumer_key = get_config('tumblr','consumer_key');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue