Re-added toot dialog to make it more compatible with mastodon. Added visibility and audio attachments

This commit is contained in:
2022-11-11 15:51:16 -06:00
parent 97815f807a
commit 2c298577cc
5 changed files with 417 additions and 60 deletions

View File

@@ -35,7 +35,7 @@ def process_image_descriptions(media_attachments):
""" Attempt to extract information for image descriptions. """
image_descriptions = []
for media in media_attachments:
if media.get("description", "") != "":
if media.get("description") != None and media.get("description") != "":
image_descriptions.append(media.get("description"))
idescriptions = ""
for image in image_descriptions: