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']