Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
17df97fccd
commit
85275d4473
|
@ -1288,7 +1288,7 @@ function twitter_fetchtimeline(int $uid): void
|
|||
$osecret = DI::pConfig()->get($uid, 'twitter', 'oauthsecret');
|
||||
$lastid = DI::pConfig()->get($uid, 'twitter', 'lastid');
|
||||
|
||||
$application_name = DI::keyValue()->get('twitter_application_name');
|
||||
$application_name = DI::keyValue()->get('twitter_application_name') ?? '';
|
||||
|
||||
if ($application_name == '') {
|
||||
$application_name = DI::baseUrl()->getHostname();
|
||||
|
@ -2187,7 +2187,7 @@ function twitter_fetchhometimeline(int $uid): void
|
|||
|
||||
Logger::info('Fetching timeline', ['uid' => $uid]);
|
||||
|
||||
$application_name = DI::keyValue()->get('twitter_application_name');
|
||||
$application_name = DI::keyValue()->get('twitter_application_name') ?? '';
|
||||
|
||||
if ($application_name == '') {
|
||||
$application_name = DI::baseUrl()->getHostname();
|
||||
|
|
Loading…
Reference in a new issue