https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64c68ac
)
Tumblr: The video export now shows the title
author
Michael Vogel
<icarus@dabo.de>
Tue, 24 Apr 2012 00:04:51 +0000
(
02:04
+0200)
committer
Michael Vogel
<icarus@dabo.de>
Tue, 24 Apr 2012 00:04:51 +0000
(
02:04
+0200)
tumblr/tumblr.php
patch
|
blob
|
history
diff --git
a/tumblr/tumblr.php
b/tumblr/tumblr.php
index
42518c0
..
650e0b1
100755
(executable)
--- a/
tumblr/tumblr.php
+++ b/
tumblr/tumblr.php
@@
-201,7
+201,10
@@
function tumblr_send(&$a,&$b) {
if (($link != '') and $video) {
$params['type'] = "video";
$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) {
$params['type'] = "link";
$params['name'] = $b['title'];