1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-12-04 14:46:33 -05:00

Fix bug in media upload

This commit is contained in:
Ivan Habunek 2023-12-05 08:58:18 +01:00
parent b85daabb9d
commit 05dbd7bb57
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D

View File

@ -242,7 +242,7 @@ def _upload_media(app, user, media, descriptions, thumbnails):
for idx, file in enumerate(media):
description = descriptions[idx].strip() if idx < len(descriptions) else None
thumbnail = thumbnails[idx] if idx < len(thumbnails) else None
result = _do_upload(app, user, file, description, thumbnail)
result = _do_upload(app, user, file, description, thumbnail).json()
uploaded_media.append(result)
_wait_until_all_processed(app, user, uploaded_media)