From be7f6683abc321392c82b7866f8b04c432950818 Mon Sep 17 00:00:00 2001 From: Carl Chenet Date: Mon, 10 Apr 2017 10:58:29 +0200 Subject: [PATCH] manage different instances --- feed2toot/tootpost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feed2toot/tootpost.py b/feed2toot/tootpost.py index 4288b72..67f04c8 100644 --- a/feed2toot/tootpost.py +++ b/feed2toot/tootpost.py @@ -42,7 +42,8 @@ class TootPost: '''Main of the TweetPost class''' mastodon = Mastodon( client_id = self.config.get('mastodon', 'client_credentials'), - access_token = self.config.get('mastodon', 'user_credentials') + access_token = self.config.get('mastodon', 'user_credentials'), + api_base_url = self.config.get('mastodon', 'instance_url') ) mastodon.toot(self.toot)