Mastodon: Add attachments and reply settings to post when recovering from an error. Closes #527, #526, #377, #137, #108

This commit is contained in:
2023-04-03 16:03:20 -06:00
parent 52267562bc
commit 5f07f3b9d0
4 changed files with 6 additions and 3 deletions

View File

@@ -567,7 +567,7 @@ class BaseBuffer(base.Buffer):
return
poll = self.session.api_call(call_name="poll_vote", id=poll.id, choices=options, preexec_message=_("Sending vote..."))
def post_from_error(self, visibility, data):
def post_from_error(self, visibility, reply_to, data):
title = _("Post")
caption = _("Write your post here")
post = messages.post(session=self.session, title=title, caption=caption)
@@ -575,6 +575,6 @@ class BaseBuffer(base.Buffer):
response = post.message.ShowModal()
if response == wx.ID_OK:
post_data = post.get_data()
call_threaded(self.session.send_post, posts=post_data, visibility=post.get_visibility())
call_threaded(self.session.send_post, posts=post_data, reply_to=reply_to, visibility=post.get_visibility())
if hasattr(post.message, "destroy"):
post.message.destroy()