fix: define podcast_id and platform_slug as foreign keys in podcasts_plaforms table

update discord logo
This commit is contained in:
Yassine Doghri 2022-01-04 16:37:59 +00:00
commit 6e9451a110
9 changed files with 19 additions and 22 deletions

View file

@ -81,7 +81,7 @@ class PodcastPlatformController extends BaseController
'platform_slug' => $platformSlug,
'podcast_id' => $this->podcast->id,
'link_url' => $podcastPlatformUrl,
'link_content' => $podcastPlatform['content'],
'account_id' => $podcastPlatform['account_id'],
'is_visible' =>
array_key_exists('visible', $podcastPlatform) &&
$podcastPlatform['visible'] === 'yes',