diff --git a/src/lambda/get-all-threads/index.py b/src/lambda/get-all-threads/index.py index f4f8ef67d..5f353cbe9 100644 --- a/src/lambda/get-all-threads/index.py +++ b/src/lambda/get-all-threads/index.py @@ -36,6 +36,9 @@ def get_all_threads(uid, index, num, school, tags, board_id): item['mod'] = True item['user_liked'] = uid in item.get('likes', []) item['total_likes'] = len(item.get('likes', [])) + + presigned_url = None + if "obj_key" in item: bucket_name = bucket presigned_url = generate_url(bucket_name, item["obj_key"])