diff --git a/app/Views/podcast/_partials/note.php b/app/Views/podcast/_partials/note.php index 757f478588cc113749e3c1cf86fc7b9b6c6e9ef2..d94f7eb390898573c7b4ffed2bafba07f8851620 100644 --- a/app/Views/podcast/_partials/note.php +++ b/app/Views/podcast/_partials/note.php @@ -27,15 +27,14 @@ </div> </header> <div class="px-6 mb-4 note-content"><?= $note->message_html ?></div> - <?php if ($note->preview_card): ?> - <?= view('podcast/_partials/preview_card', [ - 'preview_card' => $note->preview_card, - ]) ?> - <?php endif; ?> <?php if ($note->episode_id): ?> <?= view('podcast/_partials/episode_card', [ 'episode' => $note->episode, ]) ?> + <?php elseif ($note->preview_card_id): ?> + <?= view('podcast/_partials/preview_card', [ + 'preview_card' => $note->preview_card, + ]) ?> <?php endif; ?> <?= $this->include('podcast/_partials/note_actions') ?> </article> diff --git a/app/Views/podcast/_partials/note_authenticated.php b/app/Views/podcast/_partials/note_authenticated.php index 44279df1dc759af25655ad81e89b29050d65d67b..01930eb2450341d0f17568a125d65122b5dce2f5 100644 --- a/app/Views/podcast/_partials/note_authenticated.php +++ b/app/Views/podcast/_partials/note_authenticated.php @@ -27,15 +27,14 @@ </div> </header> <div class="px-6 mb-4 note-content"><?= $note->message_html ?></div> - <?php if ($note->preview_card): ?> - <?= view('podcast/_partials/preview_card', [ - 'preview_card' => $note->preview_card, - ]) ?> - <?php endif; ?> <?php if ($note->episode_id): ?> <?= view('podcast/_partials/episode_card', [ 'episode' => $note->episode, ]) ?> + <?php elseif ($note->preview_card_id): ?> + <?= view('podcast/_partials/preview_card', [ + 'preview_card' => $note->preview_card, + ]) ?> <?php endif; ?> <?= $this->include('podcast/_partials/note_actions_authenticated') ?> </article> diff --git a/app/Views/podcast/_partials/reblog.php b/app/Views/podcast/_partials/reblog.php index 12077674b1f00083911b5acfac5b27154f351917..fa014f1e91159ddb825910f2064256d4b519aa09 100644 --- a/app/Views/podcast/_partials/reblog.php +++ b/app/Views/podcast/_partials/reblog.php @@ -34,15 +34,14 @@ </div> </header> <div class="px-6 mb-4 note-content"><?= $note->message_html ?></div> - <?php if ($note->preview_card): ?> - <?= view('podcast/_partials/preview_card', [ - 'preview_card' => $note->preview_card, - ]) ?> - <?php endif; ?> <?php if ($note->episode_id): ?> <?= view('podcast/_partials/episode_card', [ 'episode' => $note->episode, ]) ?> + <?php elseif ($note->preview_card_id): ?> + <?= view('podcast/_partials/preview_card', [ + 'preview_card' => $note->preview_card, + ]) ?> <?php endif; ?> <?= $this->include('podcast/_partials/note_actions') ?> </article> diff --git a/app/Views/podcast/_partials/reblog_authenticated.php b/app/Views/podcast/_partials/reblog_authenticated.php index bfb018068da9b851d90e8b6cf878350ab0e5f79f..43ecf4601254fc16a71b96bb101a8f0c0f56a4ca 100644 --- a/app/Views/podcast/_partials/reblog_authenticated.php +++ b/app/Views/podcast/_partials/reblog_authenticated.php @@ -34,15 +34,14 @@ </div> </header> <div class="px-6 mb-4 note-content"><?= $note->message_html ?></div> - <?php if ($note->preview_card): ?> - <?= view('podcast/_partials/preview_card', [ - 'preview_card' => $note->preview_card, - ]) ?> - <?php endif; ?> <?php if ($note->episode_id): ?> <?= view('podcast/_partials/episode_card', [ 'episode' => $note->episode, ]) ?> + <?php elseif ($note->preview_card_id): ?> + <?= view('podcast/_partials/preview_card', [ + 'preview_card' => $note->preview_card, + ]) ?> <?php endif; ?> <?= $this->include('podcast/_partials/note_actions_authenticated') ?> </article> diff --git a/app/Views/podcast/_partials/reply.php b/app/Views/podcast/_partials/reply.php index 2d36a450eb9fc5f610ea00dd92dfc2f36d3b432b..c687a1e9c516914f85b7b131bcfca7044c330963 100644 --- a/app/Views/podcast/_partials/reply.php +++ b/app/Views/podcast/_partials/reply.php @@ -19,7 +19,7 @@ ><?= lang('Common.mediumDate', [$reply->published_at]) ?></time> </header> <p class="mb-2 note-content"><?= $reply->message_html ?></p> - <?php if ($reply->preview_card): ?> + <?php if ($reply->preview_card_id): ?> <?= view('podcast/_partials/preview_card', [ 'preview_card' => $reply->preview_card, ]) ?> diff --git a/app/Views/podcast/_partials/reply_authenticated.php b/app/Views/podcast/_partials/reply_authenticated.php index 739986fab06d3c34c0b1e4d03300dab7c159c298..e7dfebcfaa870556dcc59d0d9fc9db36b290f52d 100644 --- a/app/Views/podcast/_partials/reply_authenticated.php +++ b/app/Views/podcast/_partials/reply_authenticated.php @@ -19,7 +19,7 @@ ><?= lang('Common.mediumDate', [$reply->created_at]) ?></time> </header> <p class="mb-2 note-content"><?= $reply->message_html ?></p> - <?php if ($reply->preview_card): ?> + <?php if ($reply->preview_card_id): ?> <?= view('podcast/_partials/preview_card', [ 'preview_card' => $reply->preview_card, ]) ?>