Skip to content

Commit

Permalink
[K6.2] Remove part useless for karma and karma_time
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Dec 23, 2023
1 parent 3f7c9d8 commit b71643a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/admin/sql/install/mysql/create_tables.utf8.sql
Expand Up @@ -444,7 +444,6 @@ CREATE TABLE IF NOT EXISTS `#__kunena_users`
`avatar` varchar(191) NULL,
`timestamp` int(11) NULL default '0',
`karma` int(11) NULL default '0',
`karma_time` int(11) NULL default '0',
`group_id` int(4) NULL default '1',
`uhits` int(11) NULL default '0',
`personalText` tinytext NULL,
Expand Down
4 changes: 0 additions & 4 deletions src/admin/sql/install/schema/install.xml
Expand Up @@ -956,10 +956,6 @@
type="int(11)"
null="1"
default="0"/>
<field name="karma_time"
type="int(11)"
null="1"
default="0"/>
<field name="group_id"
type="int(4)"
null="1"
Expand Down
6 changes: 0 additions & 6 deletions src/libraries/kunena/src/Tables/KunenaUsers.php
Expand Up @@ -138,12 +138,6 @@ class KunenaUsers extends KunenaTable
**/
public $karma = null;

/**
* @var null
* @since Kunena 6.0
*/
public $karma_time = null;

/**
* Kunena Group ID
*
Expand Down
9 changes: 0 additions & 9 deletions src/site/src/Controllers/UserController.php
Expand Up @@ -240,15 +240,6 @@ protected function karma($karmaDelta)
}
}

$this->me->karma_time = $now;

if ($this->me->userid != $target->userid && !$this->me->save()) {
$this->app->enqueueMessage($this->me->getError(), 'error');
$this->setRedirectBack();

return;
}

$target->karma += $karmaDelta;

// Save the user with the plus or minus karma given, in #__kunena_user remove karma_time
Expand Down

0 comments on commit b71643a

Please sign in to comment.