mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 14:10:21 +00:00
look for the application name in pconfig 1st, then global config
This commit is contained in:
parent
1cf8cca257
commit
e587631eeb
1 changed files with 6 additions and 2 deletions
|
@ -791,8 +791,12 @@ function statusnet_fetchtimeline($a, $uid) {
|
|||
$osecret = get_pconfig($uid, 'statusnet', 'oauthsecret');
|
||||
$lastid = get_pconfig($uid, 'statusnet', 'lastid');
|
||||
|
||||
$application_name = get_config('statusnet', 'application_name');
|
||||
|
||||
// get the application name for the SN app
|
||||
// 1st try personal config, then system config and fallback to the
|
||||
// hostname of the node if neither one is set.
|
||||
$application_name = get_pconfig( $uid, 'statusnet', 'application_name');
|
||||
if ($application_name == "")
|
||||
$application_name = get_config('statusnet', 'application_name');
|
||||
if ($application_name == "")
|
||||
$application_name = $a->get_hostname();
|
||||
|
||||
|
|
Loading…
Reference in a new issue