Logger::info('twitter_post send', ['id' => $b['id'], 'result' => $result]);
if (!empty($result->source)) {
- DI::config()->set('twitter', 'application_name', strip_tags($result->source));
+ DI::keyValue()->set('twitter_application_name', strip_tags($result->source));
}
if (!empty($result->errors)) {
}
if (!empty($application_name)) {
- DI::config()->set('twitter', 'application_name', strip_tags($application_name));
+ DI::keyValue()->set('twitter_application_name', strip_tags($application_name));
}
}
}
$osecret = DI::pConfig()->get($uid, 'twitter', 'oauthsecret');
$lastid = DI::pConfig()->get($uid, 'twitter', 'lastid');
- $application_name = DI::config()->get('twitter', 'application_name');
+ $application_name = DI::keyValue()->get('twitter_application_name');
if ($application_name == '') {
$application_name = DI::baseUrl()->getHostname();
Logger::info('Fetching timeline', ['uid' => $uid]);
- $application_name = DI::config()->get('twitter', 'application_name');
+ $application_name = DI::keyValue()->get('twitter_application_name');
if ($application_name == '') {
$application_name = DI::baseUrl()->getHostname();