From c43a3773c8337c4efbfa5f963f4cf888029055f3 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 17 Jun 2012 20:35:20 +0200 Subject: [PATCH] Libertree: Now the title is included in the message as well --- libertree/libertree.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libertree/libertree.php b/libertree/libertree.php index 4f0c814d..f57c773b 100755 --- a/libertree/libertree.php +++ b/libertree/libertree.php @@ -167,16 +167,21 @@ function libertree_send(&$a,&$b) { } } if(count($tag_arr)) - $tags = implode(',',$tag_arr); + $tags = implode(',',$tag_arr); + $title = $b['title']; + $body = $b['body']; + + if(strlen($title)) + $body = "[b]".html_entity_decode($title)."[/b]\n\n".$body; $params = array( - 'text' => bb2diaspora($b['body']) + 'text' => bb2diaspora($body) // 'token' => $ltree_api_token ); $result = post_url($ltree_blog,$params); - logger('libertree: ' . $result); + logger('libertree: ' . $result); } } -- 2.39.5