def METHOD_NAME(thread_json):
	posts = []
	thread_json = thread_json[list(thread_json.keys())[0]]
	op = fuuka_to_4chan(thread_json["op"])
	if "posts" in thread_json:
		posts = [fuuka_to_4chan(thread_json["posts"][id], op["no"]) for id in thread_json["posts"] if thread_json["posts"][id]["subnum"] == "0"]
		op["replies"] = len(posts)
		op["images"] = len([post for post in posts if "md5" in post])
	else:
		posts = []
		op["replies"] = 0
		op["images"] = 0
	posts.insert(0, op)
	return {"posts": posts}