From a92016cf4f520d322542e6a5346f7fb4d7cf93df Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 18 Apr 2026 23:30:39 +0900 Subject: [PATCH] Distinguish between vote and blame when setting setPoint() note --- modules/point/point.controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/point/point.controller.php b/modules/point/point.controller.php index e9a66fed9..adbad2e35 100644 --- a/modules/point/point.controller.php +++ b/modules/point/point.controller.php @@ -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;