Avoid some notice in the Twitter addon #795

Merged
annando merged 3 commits from twitter-notice into 2019.01-rc 2019-01-20 13:57:43 +01:00
Showing only changes of commit 6bc8103ca2 - Show all commits

View file

@ -1801,6 +1801,9 @@ function twitter_fetch_own_contact(App $a, $uid)
// Fetching user data
// get() may throw TwitterOAuthException, but we will catch it later
$user = $connection->get('account/verify_credentials');
if (empty($user) || empty($user->id_str)) {
return false;
}
PConfig::set($uid, 'twitter', 'own_id', $user->id_str);