fix: clear cache when deleting podcast banner

This commit is contained in:
Yassine Doghri 2022-01-23 16:02:24 +00:00
commit 99bb40b8bc
2 changed files with 30 additions and 0 deletions

View file

@ -381,6 +381,9 @@ class PodcastController extends BaseController
->withInput()
->with('errors', $mediaModel->errors());
}
(new PodcastModel())->clearCache([
'id' => $this->podcast->id,
]);
// remove banner url from actor
$actor = (new ActorModel())->getActorById($this->podcast->actor_id);