]> git.mxchange.org Git - friendica-addons.git/commitdiff
The source name now includes the application name where the post comes from.
authorMichael Vogel <icarus@dabo.de>
Mon, 9 Mar 2015 18:59:12 +0000 (19:59 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 9 Mar 2015 18:59:12 +0000 (19:59 +0100)
libertree/libertree.php

index d614d758a3ed1ff5e4d292d92b895afce4b9af1d..56dc946c32a2c9f26a4ec3231185e7a4f0c181c9 100755 (executable)
@@ -159,10 +159,10 @@ 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";
-       if (isset($a->config['sitename']) AND ($a->config['sitename'] != ""))
-               $ltree_source = $a->config['sitename'];
-       else
-               $ltree_source = "Friendica";
+       $ltree_source = $a->get_hostname();
+
+       if ($b['app'] != "")
+               $ltree_source .= " (".$b['app'].")";
 
        if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) {