diff --git a/hive/server/bridge_api/thread.py b/hive/server/bridge_api/thread.py index 016b9524a4611db2423687eb2f02dfd88adb38c2..8c7c54c711302c42ffa0619935787d96c37482eb 100644 --- a/hive/server/bridge_api/thread.py +++ b/hive/server/bridge_api/thread.py @@ -49,7 +49,7 @@ async def get_discussion(context, author, permlink, observer=None): root_id = rows[0]['id'] all_posts = {} root_post = _condenser_post_object(rows[0]) - root_post = append_statistics_to_post(root_post, rows[0], False, observer, context) + root_post = await append_statistics_to_post(root_post, rows[0], False, observer, context) root_post['replies'] = [] all_posts[root_id] = root_post @@ -59,7 +59,7 @@ async def get_discussion(context, author, permlink, observer=None): for index in range(1, len(rows)): id_to_parent_id_map[rows[index]['id']] = rows[index]['parent_id'] post = _condenser_post_object(rows[index]) - post = append_statistics_to_post(post, rows[index], False) + post = await append_statistics_to_post(post, rows[index], False, observer, context) post['replies'] = [] all_posts[post['post_id']] = post