The source name now includes the application name where the post comes from.

pull/247/head
Michael Vogel 2015-03-09 19:59:12 +01:00
parent 8712ebc0a3
commit 9ac0cbffee
1 changed files with 4 additions and 4 deletions

View File

@ -159,10 +159,10 @@ function libertree_send(&$a,&$b) {
$ltree_api_token = get_pconfig($b['uid'],'libertree','libertree_api_token'); $ltree_api_token = get_pconfig($b['uid'],'libertree','libertree_api_token');
$ltree_url = get_pconfig($b['uid'],'libertree','libertree_url'); $ltree_url = get_pconfig($b['uid'],'libertree','libertree_url');
$ltree_blog = "$ltree_url/api/v1/posts/create/?token=$ltree_api_token"; $ltree_blog = "$ltree_url/api/v1/posts/create/?token=$ltree_api_token";
if (isset($a->config['sitename']) AND ($a->config['sitename'] != "")) $ltree_source = $a->get_hostname();
$ltree_source = $a->config['sitename'];
else if ($b['app'] != "")
$ltree_source = "Friendica"; $ltree_source .= " (".$b['app'].")";
if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) { if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) {