fix api/posts detail param