From dee46f821ee303208600df0abb788b984ffb4453 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Fri, 14 Dec 2018 20:10:55 +0100 Subject: [PATCH] default visibility set to "unlisted" --- toot-my-t-shirt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toot-my-t-shirt b/toot-my-t-shirt index 7ac7639..61a385e 100755 --- a/toot-my-t-shirt +++ b/toot-my-t-shirt @@ -77,7 +77,8 @@ class Socialite: def mastodon_post_image(self, img, mime_type, message, description): mdict = self.mastodon.media_post(media_file=img, mime_type=mime_type, description=description) media_id = mdict['id'] - self.mastodon.status_post(status=message, media_ids=[media_id]) + self.mastodon.status_post(status=message, media_ids=[media_id], + visibility=self.options.mastodon_visibility) def store_image(self, img, mime_type, message, description): suffix = '.jpg' @@ -201,6 +202,7 @@ def run(): define("mastodon-token", help="Mastodon token", type=str) define("mastodon-api-url", help="Mastodon API URL", type=str) + define("mastodon-visibility", help="Mastodon toot visibility", default='unlisted') define("store-dir", help="store images in this directory", type=str)