Skip to content

Commit 81a4390

Browse files
committed
Revert "Decrease numComments when a comment gets deleted"
This reverts commit cf7e19f.
1 parent b264f39 commit 81a4390

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Controller/ThreadController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@ public function removeThreadCommentAction(Request $request, $id, $commentId)
267267
$form = $this->container->get('fos_comment.form_factory.delete_comment')->createForm();
268268
$comment->setState($request->query->get('value', $comment::STATE_DELETED));
269269

270-
$thread->incrementNumComments(-1);
271-
272270
$form->setData($comment);
273271

274272
$view = View::create()

0 commit comments

Comments
 (0)