]> git.mxchange.org Git - friendica-addons.git/commitdiff
libertree: Send the sitename - if set.
authorMichael Vogel <icarus@dabo.de>
Thu, 3 Oct 2013 09:12:57 +0000 (11:12 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 3 Oct 2013 09:12:57 +0000 (11:12 +0200)
libertree/libertree.php

index c618fd8cf56d54726908bfaac4cea8bb9f0fe267..6a875bb7016a83116b44f44acf68c850f0f5c546 100755 (executable)
@@ -153,8 +153,11 @@ 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 = "[".$a->config['sitename']."](".$a->get_baseurl().")";
+       if (isset($a->config['sitename']) AND ($a->config['sitename'] != ""))
+               $ltree_source = $a->config['sitename'];
+       else
+               $ltree_source = "Friendica";
+
        if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) {
 
                require_once('include/bb2diaspora.php');