Merge pull request #1028 from annando/twitter-disconnect

Twitter: Offer the disconnect button when the account data is invalid
This commit is contained in:
Hypolite Petovan 2020-10-05 05:33:57 -04:00 committed by GitHub
commit b062142800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,6 +348,7 @@ function twitter_settings(App $a, &$s)
} else { } else {
$s .= '<div id="twitter-info" > $s .= '<div id="twitter-info" >
<p>Invalid Twitter info</p> <p>Invalid Twitter info</p>
<button type="submit" name="twitter-disconnect" value="1">' . DI::l10n()->t('Disconnect') . '</button>
</div>'; </div>';
Logger::info('Invalid twitter info (verify credentials).', ['auth' => TwitterOAuth::class]); Logger::info('Invalid twitter info (verify credentials).', ['auth' => TwitterOAuth::class]);
} }