mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 19:17:45 +02:00
fix: overwrite getActorById to return app's Actor entity
This commit is contained in:
parent
40aa661289
commit
f2bc2f7e01
3 changed files with 14 additions and 4 deletions
|
|
@ -97,12 +97,10 @@ class EpisodeComment extends UuidEntity
|
|||
}
|
||||
|
||||
if (! $this->actor instanceof Actor) {
|
||||
// @phpstan-ignore-next-line
|
||||
$this->actor = model(ActorModel::class, false)
|
||||
->getActorById($this->actor_id);
|
||||
}
|
||||
|
||||
// @phpstan-ignore-next-line
|
||||
return $this->actor;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue