From afd02734fd16ec1d4140ddc792d1f40bbcffac31 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 27 Feb 2014 19:27:00 +0100 Subject: [PATCH] Fixed calculation of activity points for received likes --- .../files/lib/system/worker/LikeRebuildDataWorker.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/worker/LikeRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/LikeRebuildDataWorker.class.php index 2dc041c56b..e9b95fc1e7 100644 --- a/wcfsetup/install/files/lib/system/worker/LikeRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/LikeRebuildDataWorker.class.php @@ -8,7 +8,7 @@ use wcf\system\WCF; * Worker implementation for updating likes. * * @author Marcel Werk - * @copyright 2001-2013 WoltLab GmbH + * @copyright 2001-2014 WoltLab GmbH * @license GNU Lesser General Public License * @package com.woltlab.wcf * @subpackage system.worker @@ -56,7 +56,7 @@ class LikeRebuildDataWorker extends AbstractRebuildDataWorker { $itemsToUser = array(); $likeObjectData = array(); foreach ($this->objectList as $like) { - if ($like->objectUserID) { + if ($like->objectUserID && $like->likeValue == Like::LIKE) { if (!isset($itemsToUser[$like->objectUserID])) { $itemsToUser[$like->objectUserID] = 0; } -- 2.20.1