Fixed calculation of activity points for received likes
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Feb 2014 18:27:00 +0000 (19:27 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Feb 2014 18:27:00 +0000 (19:27 +0100)
wcfsetup/install/files/lib/system/worker/LikeRebuildDataWorker.class.php

index 2dc041c56b08059295b9d4783a9a67d11f562bca..e9b95fc1e7860ec3400c956090b956b62659ca9e 100644 (file)
@@ -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 <http://opensource.org/licenses/lgpl-license.php>
  * @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;
                                }