mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 01:13:39 +00:00
fix for deleting your Twitter connection from the connectors settings
This commit is contained in:
parent
0eb705271f
commit
3fa32031d1
1 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
||||||
* we do not need "Twitter as login". When you've registered the app you get the
|
* 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.
|
* 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']['consumerkey'] = 'your consumer_key here';
|
||||||
* $a->config['twitter']['consumersecret'] = 'your consumer_secret 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
|
* if the twitter-disconnect checkbox is set, clear the OAuth key/secret pair
|
||||||
* from the user configuration
|
* 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', 'consumerkey' );
|
||||||
del_pconfig( local_user(), 'twitter', 'consumersecret' );
|
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' );
|
||||||
del_pconfig( local_user(), 'twitter', 'post_by_default' );
|
del_pconfig( local_user(), 'twitter', 'post_by_default' );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue