From 3fa32031d15552c34501548fac276083f13fc760 Mon Sep 17 00:00:00 2001 From: tobiasd Date: Mon, 16 Jan 2012 08:02:39 +0100 Subject: [PATCH] fix for deleting your Twitter connection from the connectors settings --- twitter/twitter.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index c492c6c7..a6f73c86 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -21,7 +21,7 @@ * we do not need "Twitter as login". When you've registered the app you get the * OAuth Consumer key and secret pair for your application/site. * - * Add this key pair to your global .htconfig.php + * Add this key pair to your global .htconfig.php or use the admin panel. * * $a->config['twitter']['consumerkey'] = 'your consumer_key here'; * $a->config['twitter']['consumersecret'] = 'your consumer_secret here'; @@ -91,10 +91,11 @@ function twitter_settings_post ($a,$post) { /*** * if the twitter-disconnect checkbox is set, clear the OAuth key/secret pair * from the user configuration - * TODO can we revoke the access tokens at Twitter and do we need to do so? */ del_pconfig( local_user(), 'twitter', 'consumerkey' ); del_pconfig( local_user(), 'twitter', 'consumersecret' ); + del_pconfig( local_user(), 'twitter', 'oauthtoken' ); + del_pconfig( local_user(), 'twitter', 'oauthsecret' ); del_pconfig( local_user(), 'twitter', 'post' ); del_pconfig( local_user(), 'twitter', 'post_by_default' ); } else { -- 2.39.5