|
|
|
|
177
|
$html = $this->render('MuzichCommentBundle:Comment:edit.html.twig', array(
|
177
|
$html = $this->render('MuzichCommentBundle:Comment:edit.html.twig', array(
|
178
|
'comment' => $comment,
|
178
|
'comment' => $comment,
|
179
|
'element_id' => $element->getId(),
|
179
|
'element_id' => $element->getId(),
|
180
|
- 'date' => $date
|
|
|
|
|
180
|
+ 'date' => $date,
|
|
|
181
|
+ 'following' => $element->userFollowComments($this->getUserId()),
|
|
|
182
|
+ 'own' => ($this->getUserId() == $element->getOwner()->getId())
|
181
|
))->getContent();
|
183
|
))->getContent();
|
182
|
// On retourne le tout
|
184
|
// On retourne le tout
|
183
|
return $this->jsonResponse(array(
|
185
|
return $this->jsonResponse(array(
|