From c1a4ac3a6e821e0cedf820e7b65a5eef12cce347 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 8 Feb 2019 09:42:50 +0100 Subject: [PATCH] Properly include hostname to twitter api when posting --- posttotwitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posttotwitter.py b/posttotwitter.py index e460fee..137a60e 100755 --- a/posttotwitter.py +++ b/posttotwitter.py @@ -33,7 +33,7 @@ class PostToTwitter(TwitterClient): """ Actually make a post to twitter! """ - ret_dict = self.tw.post('{0}statuses/update.json', data={ + ret_dict = self.tw.post('{0}statuses/update.json'.format(self.twitter_api), data={ 'status': msg, }) if r.status_code != 200: -- 2.39.5