mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-18 00:12:16 +09:00
Distinguish between vote and blame when setting setPoint() note
This commit is contained in:
parent
02ca0450ad
commit
a92016cf4f
1 changed files with 2 additions and 2 deletions
|
|
@ -607,7 +607,7 @@ class PointController extends Point
|
|||
$point = PointModel::getModulePointConfig($obj->module_srl, $config_key);
|
||||
if ($point)
|
||||
{
|
||||
$note = $is_comment ? 'voter_comment' : 'voter_document';
|
||||
$note = ($obj->point > 0) ? ($is_comment ? 'voter_comment' : 'voter_document') : ($is_comment ? 'blamer_comment' : 'blamer_document');
|
||||
if (isset($obj->cancel) && $obj->cancel)
|
||||
{
|
||||
$point = -1 * $point;
|
||||
|
|
@ -624,7 +624,7 @@ class PointController extends Point
|
|||
$point = PointModel::getModulePointConfig($obj->module_srl, $config_key);
|
||||
if ($point)
|
||||
{
|
||||
$note = $is_comment ? 'voted_comment' : 'voted_document';
|
||||
$note = ($obj->point > 0) ? ($is_comment ? 'voted_comment' : 'voted_document') : ($is_comment ? 'blamed_comment' : 'blamed_document');
|
||||
if (isset($obj->cancel) && $obj->cancel)
|
||||
{
|
||||
$point = -1 * $point;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue