Fixed vars parent and depth when getting a comment of a thread

Hi,

I had an issue when posting new comment, if this comment had a parent it wouldn't put the data-parent attribute because parent equals null and also the depth would always be 0, the default one. I fixed this by getting those values and giving them to the view.