diff --git a/addon/twitter/twitter.php b/addon/twitter/twitter.php index 7d4cf1514..961cca3bf 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 .= 'getAuthorizeURL($token).'" target="_twitter">'; $s .= ''.t('If enabled all your public postings will be posted to the associated Twitter account as well.').'
'; $s .= '