X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tumblr%2Ftumblr.php;h=03a67949b3ec299f439c95166a13b0d235317f7a;hb=bf2d3a835690697eafc5f6ec8fda9a0dcb34a42f;hp=deba857e5ffe34241c6ea4fee887d493242f14f3;hpb=65a26cddddec5690d0add1aa55fe23af433af041;p=friendica-addons.git diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index deba857e..03a67949 100755 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -32,7 +32,7 @@ function tumblr_jot_nets(&$a,&$b) { if(intval($tmbl_post) == 1) { $tmbl_defpost = get_pconfig(local_user(),'tumblr','post_by_default'); $selected = ((intval($tmbl_defpost) == 1) ? ' checked="checked" ' : ''); - $b .= '
".bbcode($body)."
"; + else + $params['caption'] = bbcode($body); + } else if (($link != '') and !$video) { + $params['type'] = "link"; + $params['name'] = $title; + $params['url'] = $link; + //$params['description'] = bbcode($body); + $params['description'] = bbcode($b["body"]); + } else { + $params['type'] = "regular"; + $params['title'] = $title; + $params['body'] = bbcode($b['body']); + } $x = post_url($tmbl_blog,$params); $ret_code = $a->get_curl_code(); @@ -187,7 +226,7 @@ function tumblr_send(&$a,&$b) { elseif($ret_code == 403) logger('tumblr_send: authentication failure'); else - logger('tumblr_send: general error: ' . print_r($x,true)); + logger('tumblr_send: general error: ' . print_r($x,true)); } }