diff --git a/postgresqleu/util/messaging/twitter.py b/postgresqleu/util/messaging/twitter.py index 279b18524..a839fc677 100644 --- a/postgresqleu/util/messaging/twitter.py +++ b/postgresqleu/util/messaging/twitter.py @@ -249,7 +249,7 @@ def post(self, tweet, image=None, replytotweetid=None): if r.status_code != 200: return (None, 'Media upload: {}'.format(r.text)) d['media'] = { - 'media_ids': r.json()['media_id'], + 'media_ids': [r.json()['media_id'], ] } while d['text']: