fix: overwrite getActorById to return app's Actor entity

This commit is contained in:
Yassine Doghri 2022-09-14 10:21:14 +00:00
commit f2bc2f7e01
3 changed files with 14 additions and 4 deletions

View file

@ -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;
}