]> git.mxchange.org Git - friendica-addons.git/blobdiff - libertree/libertree.php
Libertree: The source is set to the site name
[friendica-addons.git] / libertree / libertree.php
index 0e7e1a8191b2491ed96f257bc49841ad40ac9eb2..2809adee3702856ba7aa11b410ba5e6d6022cf49 100755 (executable)
@@ -153,7 +153,8 @@ function libertree_send(&$a,&$b) {
        $ltree_api_token = get_pconfig($b['uid'],'libertree','libertree_api_token');
        $ltree_url = get_pconfig($b['uid'],'libertree','libertree_url');
        $ltree_blog = "$ltree_url/api/v1/posts/create/?token=$ltree_api_token";
-       $ltree_source = "Friendica";
+       //$ltree_source = "Friendica";
+       $ltree_source = "[".$a->config['sitename']."](".$a->get_baseurl().")";
        if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) {
 
                require_once('include/bb2diaspora.php');
@@ -188,12 +189,12 @@ function libertree_send(&$a,&$b) {
                 } while ($oldbody != $body);
 
                // convert to markdown
-               $body = bb2diaspora($body);
+               $body = bb2diaspora($body, false, false);
 
                // Adding the title
                if(strlen($title))
                        $body = "## ".html_entity_decode($title)."\n\n".$body;
-               
+
 
                $params = array(
                        'text' => $body,