mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
fix(housekeeping): remove unnecessary $tablePrefix variable when resetting post count
fixes #383
This commit is contained in:
parent
3d5fc14d5e
commit
97d793f55e
1 changed files with 2 additions and 4 deletions
|
|
@ -12,7 +12,6 @@ namespace Modules\Fediverse\Models;
|
|||
|
||||
use CodeIgniter\Events\Events;
|
||||
use CodeIgniter\Model;
|
||||
use Config\Database;
|
||||
use Modules\Fediverse\Config\Fediverse;
|
||||
use Modules\Fediverse\Entities\Actor;
|
||||
|
||||
|
|
@ -283,9 +282,8 @@ class ActorModel extends Model
|
|||
|
||||
public function resetPostsCount(): int | false
|
||||
{
|
||||
$actorsFollowersCount = $this->db->table($tablePrefix . 'fediverse_posts')->select(
|
||||
'actor_id as id, COUNT(*) as `posts_count`'
|
||||
)
|
||||
$actorsFollowersCount = $this->db->table('fediverse_posts')
|
||||
->select('actor_id as id, COUNT(*) as `posts_count`')
|
||||
->where([
|
||||
'in_reply_to_id' => null,
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue