diff --git a/granary/as2.py b/granary/as2.py index 42249246..dcb8db18 100644 --- a/granary/as2.py +++ b/granary/as2.py @@ -407,6 +407,8 @@ def all_to_as1(field): images = util.pop_list(obj, 'image') # by convention, first element in AS2 images field is banner/header if type in ACTOR_TYPES and images: + if isinstance(images[0], str): + images[0] = {'url': images[0]} images[0]['objectType'] = 'featured' img_atts = [a for a in attachments