From 4b6e563f7681b3e3beeccdad8da1f25a17adeaa5 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 20 Jan 2020 14:38:55 +1000 Subject: [PATCH] fixed yet another silly issue --- app/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/functions.py b/app/functions.py index a620b32..60fded2 100644 --- a/app/functions.py +++ b/app/functions.py @@ -127,6 +127,8 @@ def make_post(args): acct = args[3] handle = args[0] + bot, post = generate_output(handle) + client = Mastodon( client_id = bot['client_id'], client_secret = bot['client_secret'], @@ -134,8 +136,6 @@ def make_post(args): api_base_url = "https://{}".format(handle.split("@")[2]) ) - bot, post = generate_output(handle) - # print(post) visibility = bot['post_privacy'] if len(args) == 1 else args[2] visibilities = ['public', 'unlisted', 'private']