From: Michael Vogel Date: Thu, 3 Oct 2013 09:12:57 +0000 (+0200) Subject: libertree: Send the sitename - if set. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=150db7e816e92f0dedb5675934116203db4d2966;p=friendica-addons.git libertree: Send the sitename - if set. --- diff --git a/libertree/libertree.php b/libertree/libertree.php index c618fd8c..6a875bb7 100755 --- a/libertree/libertree.php +++ b/libertree/libertree.php @@ -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');