feat(podcasting 2.0): update podcast:social tag to adhere to latest spec

This commit is contained in:
Yassine Doghri 2022-03-03 16:15:42 +00:00
commit a597cf4ecf
2 changed files with 84 additions and 4 deletions

View file

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