From 89a33a651e0708c95aa7cd170750715d625bf031 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 8 Feb 2011 14:38:51 +0100 Subject: [PATCH] deletion of OAuth stuff works now, removed ToDo note --- addon/twitter/twitter.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/addon/twitter/twitter.php b/addon/twitter/twitter.php index 7d4cf15144..961cca3bf7 100644 --- a/addon/twitter/twitter.php +++ b/addon/twitter/twitter.php @@ -31,7 +31,6 @@ /* __TODO__ * - * - deletion of the OAuth credentials does not work * - what about multimedia content? * so far we just strip HTML tags from the message */ @@ -58,7 +57,6 @@ function twitter_settings_post ($a,$post) { /*** * if the twitter-disconnect checkbox is set, clear the OAuth key/secret pair * from the user configuration - * TODO this does not work that way!? * TODO can we revoke the access tokens at Twitter and do we need to do so? */ del_pconfig( local_user(), 'twitter', 'consumerkey' ); @@ -85,7 +83,7 @@ function twitter_settings_post ($a,$post) { } else { // if no PIN is supplied in the POST variables, the user has changed the setting // to post a tweet for every new __public__ posting to the wall - set_pconfig(local_user(),'twitter','post',intval($_POST['twitter'])); + set_pconfig(local_user(),'twitter','post',intval($_POST['twitter-enable'])); }} } function twitter_settings(&$a,&$s) { @@ -130,7 +128,7 @@ function twitter_settings(&$a,&$s) { * make some nice form */ $s .= '

'.t('At this Friendika instance the Twitter plugin was enabled but you have not yet connected your account to your Twitter account. To do so click the button below to get a PIN from Twitter which you have to copy into the input box below and submit the form. Only your public posts will be posted to Twitter.').'

'; - $s .= ''.t('Log in with Twitter').'></a>';
+			$s .= '<a href=getAuthorizeURL($token).'" target="_twitter">'.t('Log in with Twitter').''; $s .= '
'; $s .= ''; $s .= ''; @@ -150,7 +148,7 @@ function twitter_settings(&$a,&$s) { $s .= '

'.t('If enabled all your public postings will be posted to the associated Twitter account as well.').'

'; $s .= '
'; $s .= ''; - $s .= ''; + $s .= ''; $s .= '
'; $s .= '
'; $s .= '';