mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-16 04:57:46 +02:00
refactor: add modules folder to phpstan paths + fix errors
This commit is contained in:
parent
7a6d9df6db
commit
bb628f355f
166 changed files with 452 additions and 526 deletions
|
|
@ -27,7 +27,7 @@ class FollowModel extends Model
|
|||
protected $table = 'fediverse_follows';
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $allowedFields = ['actor_id', 'target_actor_id'];
|
||||
|
||||
|
|
@ -59,6 +59,7 @@ class FollowModel extends Model
|
|||
|
||||
// increment followers_count for target actor
|
||||
model('ActorModel', false)
|
||||
->builder()
|
||||
->where('id', $targetActor->id)
|
||||
->increment('followers_count');
|
||||
|
||||
|
|
@ -114,6 +115,7 @@ class FollowModel extends Model
|
|||
|
||||
// decrement followers_count for target actor
|
||||
model('ActorModel', false)
|
||||
->builder()
|
||||
->where('id', $targetActor->id)
|
||||
->decrement('followers_count');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue