mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Merge pull request #1584 from YJSoft/bugfix/votecount
#1580 댓글 추천/비추천시에도 변경된 추천수를 반환하도록 수정
This commit is contained in:
commit
740ad27bb3
1 changed files with 6 additions and 2 deletions
|
|
@ -54,7 +54,9 @@ class commentController extends comment
|
|||
}
|
||||
|
||||
$point = 1;
|
||||
return $this->updateVotedCount($comment_srl, $point);
|
||||
$output = $this->updateVotedCount($comment_srl, $point);
|
||||
$this->add('voted_count', $output->get('voted_count'));
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -90,7 +92,9 @@ class commentController extends comment
|
|||
}
|
||||
|
||||
$point = -1;
|
||||
return $this->updateVotedCount($comment_srl, $point);
|
||||
$output = $this->updateVotedCount($comment_srl, $point);
|
||||
$this->add('blamed_count', $output->get('blamed_count'));
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue