From a3e144e5496c8c207f68e8ea0b580b644f77398c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 29 Jan 2018 10:32:37 -0500 Subject: [PATCH 1/2] Add missing use in statusnet addon --- statusnet/library/statusnetoauth.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/statusnet/library/statusnetoauth.php b/statusnet/library/statusnetoauth.php index beed59e7..27d91638 100644 --- a/statusnet/library/statusnetoauth.php +++ b/statusnet/library/statusnetoauth.php @@ -1,5 +1,7 @@ Date: Mon, 29 Jan 2018 10:42:12 -0500 Subject: [PATCH 2/2] Upgrade yet more calls with TwitterOAuth --- twitter/twitter.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 8b483c9e..bca5e7db 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -298,17 +298,17 @@ function twitter_settings(App $a, &$s) * account at Twitter. */ $connection = new TwitterOAuth($ckey, $csecret); - $request_token = $connection->url('oauth/request_token', ['oauth_callback' => 'oob']); + $result = $connection->oauth('oauth/request_token', ['oauth_callback' => 'oob']); /* * * * make some nice form */ $s .= '

' . L10n::t('At this Friendica instance the Twitter addon 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 .= '' . L10n::t('Log in with Twitter') . ''; + $s .= '' . L10n::t('Log in with Twitter') . ''; $s .= '
'; $s .= ''; $s .= ''; - $s .= ''; - $s .= ''; + $s .= ''; + $s .= ''; $s .= '
'; $s .= '
'; } else {