--- comment.module.20061018 2006-10-18 16:14:42.000000000 -0400 +++ comment.module 2006-11-17 21:22:46.000000000 -0500 @@ -587,8 +587,12 @@ function comment_save($edit) { // Strip the "/" from the end of the thread. $max = rtrim($max, '/'); + // We need to get the value at the correct depth. + $parts = explode('.', $max); + $firstsegment = $parts[0]; + // Finally, build the thread field for this new comment. - $thread = int2vancode(vancode2int($max) + 1) .'/'; + $thread = int2vancode(vancode2int($firstsegment) + 1) .'/'; } else { // This is comment with a parent comment: we increase