diff --git a/resolvers/reader.py b/resolvers/reader.py index 412bd88f..f40b74f3 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -265,7 +265,7 @@ def get_shouts_with_stats(q, limit=20, offset=0, author_id=None): captions = {int(ca['author_id']): ca['caption'] for ca in captions_json} if captions_json else {} authors = [a for a in authors_json] if authors_json else [] for author in authors: - author['caption'] = captions.get(int(author.id), "") + author['caption'] = captions.get(int(author['id']), "") shout.authors = authors topics = [t for t in topics_json] if topics_json else [] for topic in topics: