mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Use the same visibility when replying to toots
This commit is contained in:
parent
701a557357
commit
2a0e73ad33
@ -309,6 +309,8 @@ class BaseBuffer(base.Buffer):
|
|||||||
users.insert(0, "@{} ".format(item.account.acct))
|
users.insert(0, "@{} ".format(item.account.acct))
|
||||||
users_str = "".join(users)
|
users_str = "".join(users)
|
||||||
toot = messages.toot(session=self.session, title=title, caption=caption, text=users_str)
|
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()
|
response = toot.message.ShowModal()
|
||||||
if response == wx.ID_OK:
|
if response == wx.ID_OK:
|
||||||
toot_data = toot.get_data()
|
toot_data = toot.get_data()
|
||||||
@ -330,6 +332,7 @@ class BaseBuffer(base.Buffer):
|
|||||||
users.insert(0, "@{} ".format(item.account.acct))
|
users.insert(0, "@{} ".format(item.account.acct))
|
||||||
users_str = "".join(users)
|
users_str = "".join(users)
|
||||||
toot = messages.toot(session=self.session, title=title, caption=caption, text=users_str)
|
toot = messages.toot(session=self.session, title=title, caption=caption, text=users_str)
|
||||||
|
toot.message.visibility.SetSelection(3)
|
||||||
response = toot.message.ShowModal()
|
response = toot.message.ShowModal()
|
||||||
if response == wx.ID_OK:
|
if response == wx.ID_OK:
|
||||||
toot_data = toot.get_tweet_data()
|
toot_data = toot.get_tweet_data()
|
||||||
|
Loading…
Reference in New Issue
Block a user