]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fix wrong variable name in twitter addon
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 28 Jan 2018 16:41:58 +0000 (11:41 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 28 Jan 2018 16:41:58 +0000 (11:41 -0500)
twitter/twitter.php

index 38b4728a1e9d7ebb2e71ac8afd187e5d51405bc3..50239b8bef54cb670dce859ad088f8fb77152ad5 100644 (file)
@@ -517,7 +517,7 @@ function twitter_post_hook(App $a, &$b)
                        return;
                }
 
-               $tweet = new TwitterOAuth($ckey, $csecret, $otoken, $osecret);
+               $connection = new TwitterOAuth($ckey, $csecret, $otoken, $osecret);
 
                $max_char = 280;
                $msgarr = BBCode::toPlaintext($b, $max_char, true, 8);
@@ -593,7 +593,7 @@ function twitter_post_hook(App $a, &$b)
                                $post["in_reply_to_status_id"] = substr($orig_post["uri"], 9);
                        }
 
-                       $result = $tweet->post($url, $post);
+                       $result = $connection->post($url, $post);
                        logger('twitter_post send, result: ' . print_r($result, true), LOGGER_DEBUG);
 
                        if ($result->source) {