} else {
// To not delete the replies we have to set the parent to the parent
// of the original comment for each reply
for (UserComment reply : replies) {
reply.setParent(comment.getParent());
db.updateObject(reply);
}
}
// Now delete this comment and finish
db.deleteObject(comment);
return counter+1;