From 2a0e73ad338410132d2369f76f6ba59f034735a7 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sat, 12 Nov 2022 22:32:31 -0600 Subject: [PATCH] Use the same visibility when replying to toots --- src/controller/buffers/mastodon/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controller/buffers/mastodon/base.py b/src/controller/buffers/mastodon/base.py index b5eb0780..efd0a519 100644 --- a/src/controller/buffers/mastodon/base.py +++ b/src/controller/buffers/mastodon/base.py @@ -309,6 +309,8 @@ class BaseBuffer(base.Buffer): users.insert(0, "@{} ".format(item.account.acct)) users_str = "".join(users) toot = messages.toot(session=self.session, title=title, caption=caption, text=users_str) + visibility_settings = dict(public=0, unlisted=1, private=2, direct=3) + toot.message.visibility.SetSelection(visibility_settings.get(visibility)) response = toot.message.ShowModal() if response == wx.ID_OK: toot_data = toot.get_data() @@ -330,6 +332,7 @@ class BaseBuffer(base.Buffer): users.insert(0, "@{} ".format(item.account.acct)) users_str = "".join(users) toot = messages.toot(session=self.session, title=title, caption=caption, text=users_str) + toot.message.visibility.SetSelection(3) response = toot.message.ShowModal() if response == wx.ID_OK: toot_data = toot.get_tweet_data()