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

@@ -79,6 +79,8 @@ class post(messages.basicMessage):
visibility_settings = dict(public=0, unlisted=1, private=2, direct=3)
self.message.visibility.SetSelection(visibility_settings.get(visibility))
self.message.on_sensitivity_changed()
for attachment in self.attachments:
self.message.add_item(item=[attachment["file"], attachment["type"], attachment["description"]])
self.text_processor()
def text_processor(self, *args, **kwargs):