diff --git a/twitter/twitter.php b/twitter/twitter.php index f35ff8d3e..5aeecf30d 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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();